@lazyobject
def GetConsoleScreenBufferInfo():
 gcsbi = ctypes.windll.kernel32.GetConsoleScreenBufferInfo
 gcsbi.errcheck = check_zero
 gcsbi.argtypes = (HANDLE, POINTER(CONSOLE_SCREEN_BUFFER_INFO))
 gcsbi.restype = BOOL
 return gcsbi

@ lazyobject def GetConsoleScreenBufferInfo ( ) : gcsbi = ctypes . windll . kernel32 . GetConsoleScreenBufferInfo gcsbi . errcheck = check_zero gcsbi . argtypes = ( HANDLE , POINTER ( CONSOLE_SCREEN_BUFFER_INFO ) ) gcsbi . restype = BOOL return gcsbi
returns the windows version of the get screen buffer .