def get_position_size(fd=1):
 info = get_console_screen_buffer_info(fd)
 return (info.dwCursorPosition.X, info.dwCursorPosition.Y, info.dwSize.X, info.dwSize.Y)

def get_position_size ( fd = 1 ) : info = get_console_screen_buffer_info ( fd ) return ( info . dwCursorPosition . X , info . dwCursorPosition . Y , info . dwSize . X , info . dwSize . Y )
gets the current cursor position and screen size tuple: .