#NEWLINE# def __call__( self ) : #NEWLINE# #INDENT# import sys , tty , termios #NEWLINE# fd = sys . stdin . fileno ( ) #NEWLINE# old_settings = termios . tcgetattr ( fd ) #NEWLINE# try : #NEWLINE# #INDENT# tty . setraw ( sys . stdin . fileno ( ) ) #NEWLINE# ch = sys . stdin . read ( 1 ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# termios . tcsetattr ( self , termios . TCSADRAIN , old_settings ) #NEWLINE# #UNINDENT# return ch