def main_loop_heads(self): sys.stdout.flush() self.listen_daemonize() self.refresh_all() # main prompt text self.main_loOp = "@".join([ colorize("Parat", colored=self.colors, color="LBLUE"), colorize("main", colored=self.colors, color="LBLUE") ]) self.zom_loOp = "@".join([ colorize("Parat", colored=self.colors, color="LBLUE"), colorize("target", colored=self.colors, color="LBLUE") ]) # set prompt buffer self.in_main_prompt = "\r[" + self.main_loOp + "]$ " prompt_q.put(self.in_main_prompt) completer = auto_complete(self.main_comands)
def set_ctrl_completer(): completer = auto_complete(self.target_comands) readline.set_completer(completer.complete) readline.parse_and_bind('tab: complete')
def set_ctrl_completer(): completer = auto_complete(self.target_comands)