code: def waitForInput(self):
          
          self._waitingForInput = False
          
          try:
              if self.isDestroyed() or self.isReadOnly():
                  return
          except RuntimeError:
              return
          
          self.moveCursor(QTextCursor.End)
          if self.textCursor().block().text() == '>>> ':
              return
          
          # if there is already text on the line, then start a new line
          newln = '>>> '
          if projex.text.nativestring(self.textCursor().block().text()):
              newln = '\n' + newln
          
          # insert the text
          self.setCurrentMode('standard')
          self.insertPlainText(newln)
          self.scrollToEnd()
          
          self._blankCache = ''
docs: Inserts a new input command into the console editor.