(self)
If any key is needed.
If any key is needed.
If any key is needed .
def any_key(self):
        '''If any key is needed.'''

        while True:
            try:
                e = self.stdscr.getch()
            except KeyboardInterrupt:
                e = 4
            if e == 4:
                return -1
            elif e == cur.KEY_RESIZE:
                self.resize_all()
            else:
                return e
def any_key ( self ) : while True : try : e = self . stdscr . getch ( ) except KeyboardInterrupt : e = 4 if e == 4 : return - 1 elif e == cur . KEY_RESIZE : self . resize_all ( ) else : return e