def handleOutput(self, shutdown): parser = CommandParser(self.rstream) while not shutdown.is_set(): command = parser.getCommand() if(command == None): return log(self, "cmd: %r" % command, 4) self.terminal.handleCmd(command)
def handleOutput(self, stream): parser = CommandParser(stream) while True: command = parser.getCommand() if(command == None): return log(self, "cmd: %r" % command, 4) self.terminal.handleCmd(command)