code: def set_prompt(self, prompt_command="", position=0):
          
          self.description_docs = u'{}'.format(prompt_command)
          self.cli.current_buffer.reset(
              initial_document=Document(
                  self.description_docs,
                  cursor_position=position))
          self.cli.request_redraw()
docs: writes the prompt line