def set_console_mode(mode, fd=1):
 hcon = STDHANDLES[fd]
 SetConsoleMode(hcon, mode)

def set_console_mode ( mode , fd = 1 ) : hcon = STDHANDLES [ fd ] SetConsoleMode ( hcon , mode )
set the mode of the active console input .