'Insert text at the current cursor position
or at the end of the command line'

def insert_text(self, text, at_end=False, error=False, prompt=False):

    if at_end:
        self.append_text_to_shell(text, error, prompt)
    else:
        ConsoleBaseWidget.insert_text(self, text)
