예제 #1
0
    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)
예제 #2
0
파일: Shell.py 프로젝트: zshell/Parat
 def set_ctrl_completer():
     completer = auto_complete(self.target_comands)
     readline.set_completer(completer.complete)
     readline.parse_and_bind('tab: complete')
예제 #3
0
 def set_ctrl_completer():
     completer = auto_complete(self.target_comands)