示例#1
0
 def block_command(self):
     if "basement" in self.last_user_input and \
             (
                 "ls" in self.last_user_input or
                 "cat" in self.last_user_input
             ):
         print bernard_text
         return True
     else:
         return TerminalNanoEleanor.block_command(self)
示例#2
0
 def block_command(self):
     if "seminterrato" in self.last_user_input and \
             (
                 "ls" in self.last_user_input or
                 "cat" in self.last_user_input
             ):
         print bernard_text
         return True
     else:
         return TerminalNanoEleanor.block_command(self)
示例#3
0
 def autocomplete_files(self, text, line, begidx, endidx, only_dirs=False,
                        only_exe=False):
     completions = TerminalNanoEleanor.autocomplete_files(
         self, text, line, begidx, endidx, only_dirs,
         only_exe
     )
     if "fotocopiatrice.sh" in completions:
         print "\n" + bernard_text
         return []
     else:
         return completions
示例#4
0
 def autocomplete_files(self, text, line, begidx, endidx, only_dirs=False,
                        only_exe=False):
     completions = TerminalNanoEleanor.autocomplete_files(
         self, text, line, begidx, endidx, only_dirs,
         only_exe
     )
     if "photocopier.sh" in completions:
         print "\n" + bernard_text
         return []
     else:
         return completions