Example #1
0
    def check_command(self):
        if self.last_user_input == "cat Eleanor":
            self.eleanor_speaks()
            record_user_interaction(self, "cat_eleanor")

        else:
            return TerminalNano.check_command(self)
Example #2
0
 def check_command(self):
     if self.last_user_input == "cat bernards-hat":
         self.send_text(
             "\nIs that Bernard\'s hat? "
             "Strange he left it behind..."
         )
     else:
         return TerminalNano.check_command(self)
Example #3
0
 def check_command(self):
     if self.last_user_input == "cat bernards-hat":
         self.send_text(
             _("\nIs that Bernard\'s hat? " +\
             "Strange he left it behind...")
         )
     else:
         return TerminalNano.check_command(self)
Example #4
0
 def check_command(self):
     if self.last_user_input == "cat cappello-di-bernardo":
         self.send_text(
             "\nO non รจ il cappello di Bernardo questo? "
             "Strano che l'abbia lasciato qui..."
         )
     else:
         return TerminalNano.check_command(self)
Example #5
0
 def _autocomplete_files(self, text, line, begidx, endidx, only_dirs=False, only_exe=False):
     completions = TerminalNano._autocomplete_files(self, text, line, begidx, endidx, only_dirs, only_exe)
     return bernard_autocomplete(completions)