Inserts a prompt at the end of the buffer and turns on the prompt-mode? flag. A newline may be added before the prompt.