#NEWLINE# def handle_input( self , mode , data ) : #NEWLINE# #INDENT# if ( ( mode == 'search' ) or ( mode == 'reverse_search' ) ) : #NEWLINE# #INDENT# self . search_term = data #NEWLINE# self . reverse_search = ( mode == 'reverse_search' ) #NEWLINE# self . next_search_match ( ) #NEWLINE# self . _draw ( )