178
178
return (defaultx, defaulty)
180
180
# To avoid problem with redirecting output via pipe
182
182
h = ctypes.windll.kernel32.GetStdHandle(WIN32_STDERR_HANDLE)
183
183
csbi = ctypes.create_string_buffer(22)
184
184
res = ctypes.windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)