def set_prompt(self, prompt_command="", position=0):
        """ writes the prompt line """
        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()
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 ( )
writes the prompt line