def set_console_screen_buffer_size(x, y, fd=1):
 coord = COORD()
 coord.X = x
 coord.Y = y
 hcon = STDHANDLES[fd]
 rtn = SetConsoleScreenBufferSize(hcon, coord)
 return rtn

def set_console_screen_buffer_size ( x , y , fd = 1 ) : coord = COORD ( ) coord . X = x coord . Y = y hcon = STDHANDLES [ fd ] rtn = SetConsoleScreenBufferSize ( hcon , coord ) return rtn
sets the console size for a standard buffer .