def getch():
try:<EOL><INDENT>termios.tcsetattr(_fd, termios.TCSANOW, _new_settings)<EOL>ch = sys.stdin.read(<NUM_LIT:1>)<EOL><DEDENT>finally:<EOL><INDENT>termios.tcsetattr(_fd, termios.TCSADRAIN, _old_settings)<EOL><DEDENT>return ch<EOL>
get character. waiting for key