'Handles the history of commands.'

def _showHistory(self, text):

    iterini = self.textbuffer.get_iter_at_offset(self.cursorLimit)
    iterend = self.textbuffer.get_end_iter()
    self.textbuffer.delete(iterini, iterend)
    iterl = self.textbuffer.get_end_iter()
    self.textbuffer.insert(iterl, text)
    self.scroll_to_mark(self.textbuffer.get_insert(), 0)
