def _prompt_started(self):
<EOL>self._control.document().setMaximumBlockCount(<NUM_LIT:0>)<EOL>self._control.setUndoRedoEnabled(True)<EOL>self._control.setReadOnly(False)<EOL>self._control.setAttribute(QtCore.Qt.WA_InputMethodEnabled, True)<EOL>if not self._reading:<EOL><INDENT>self._executing = False<EOL><DEDENT>self._prompt_started_hook()<EOL>if self._input_buffer_pending:<EOL><INDENT>self.input_buffer = self._input_buffer_pending<EOL>self._input_buffer_pending = '<STR_LIT>'<EOL><DEDENT>self._control.moveCursor(QtGui.QTextCursor.End)<EOL>
Called immediately after a new prompt is displayed.