def output_command(self, s):
        self.outPip.append(s if isinstance(s, unicode) else s.decode(sys.stdin.encoding))
        if len(self.cmdBuff) >= CMD_HISTORY: self.cmdBuff = self.cmdBuff[::-1].pop()[::-1]
        self.cmdBuff.append(s)