Exemplo n.º 1
0
 def __init__(self, parent, console):
   self.console = console	
   self.completekey = self.console.completekey
   self.complete_func = self.console.complete
   self.line = ""
   self.history = history()
   self.parent = parent
Exemplo n.º 2
0
 def __init__(self, parent, console):
     self.console = console
     self.completekey = self.console.completekey
     self.complete_func = self.console.complete
     self.line = ""
     self.history = history()
     self.parent = parent
Exemplo n.º 3
0
    def __init__(self, completekey='tab', stdin=None, stdout=None, sigstp=True, arguments=None):
        Cmd.__init__(self, completekey, stdin, stdout)
        UI.__init__(self, arguments)
        self.arguments = arguments
        self.cm = ConfigManager.Get()
        self.history = history()
        self.api = ApiManager()
        self.vfs = self.api.vfs()
        self.taskmanager = self.api.TaskManager()
	self.line_to_arguments = line_to_arguments.Line_to_arguments()
        self.old_completer = ""
        self.prompt = "dff / > "
        self.intro = "\n##########################################\n\
# Welcome on Digital Forensics Framework #\n\
##########################################\n"
	self.stdin = self
	self.completekey = '\t'
	self.comp_raw = complete_raw_input(self)
        if self.arguments:
            print arguments.verbosity
            self.completion = completion.Completion(self.comp_raw, arguments.debug, arguments.verbosity)
        else:
            self.completion = completion.Completion(self.comp_raw, False, 0)
	self.proc = None
	if os.name == 'posix' and sigstp:
  	  signal.signal(signal.SIGTSTP, self.bg)
Exemplo n.º 4
0
 def __init__(self, parent, console):
     self.console = console
     self.completekey = self.console.completekey
     self.complete_func = self.console.complete
     self.line = u""
     self.cutbuff = u""
     self.history = history()
     self.parent = parent
     self.fd = sys.stdin.fileno()
     if os.isatty(self.fd):
         self.oldterm = termios.tcgetattr(self.fd)
         self.term = termios.tcgetattr(self.fd)
         self.term[3] = self.term[3] & ~termios.ICANON & ~termios.ECHO
Exemplo n.º 5
0
Arquivo: history.py Projeto: kzwkt/dff
 def __init__(self):
     Script.__init__(self, "history")
     self.h = hist.history()