'Print a new prompt and save its (line, index) position'

def new_prompt(self, prompt):

    if (self.get_cursor_line_column()[1] != 0):
        self.write('\n')
    self.write(prompt, prompt=True)
    self.current_prompt_pos = self.get_position('cursor')
    self.ensureCursorVisible()
    self.new_input_line = False
