(self)
Close the program correctly.
Close the program correctly.
Close the program correctly .
def close(self):
        '''Close the program correctly.'''

        if self.config['rem_key'] is False and isfile(self.key_home):
            remove(self.key_home)
        cur.nocbreak()
        self.stdscr.keypad(0)
        cur.endwin()
        exit()
def close ( self ) : if self . config [ 'rem_key' ] is False and isfile ( self . key_home ) : remove ( self . key_home ) cur . nocbreak ( ) self . stdscr . keypad ( 0 ) cur . endwin ( ) exit ( )