Determines size of console window at runtime.