code: def cmdHISTORY(self, params):
          
          cnt = 0
          self.writeline('Command history\n')
          for line in self.history:
              cnt = cnt + 1
              self.writeline("%-5d : %s" % (cnt, ''.join(line)))
docs: Display the command history