def _get_input_buffer(self, force=False):
<EOL>if self._executing and not force:<EOL><INDENT>return self._input_buffer_executing<EOL><DEDENT>cursor = self._get_end_cursor()<EOL>cursor.setPosition(self._prompt_pos, QtGui.QTextCursor.KeepAnchor)<EOL>input_buffer = cursor.selection().toPlainText()<EOL>return input_buffer.replace('<STR_LIT:\n>' + self._continuation_prompt, '<STR_LIT:\n>')<EOL>
The text that the user has entered entered at the current prompt.

        If the console is currently executing, the text that is executing will
        always be returned.