'Store Shell input statement into history list.'

def store(self, source):

    source = source.strip()
    if (len(source) > 2):
        try:
            self.history.remove(source)
        except ValueError:
            pass
        self.history.append(source)
    self.pointer = None
    self.prefix = None
