def clear_output(self):
        """Clears the current line of output."""
        cursor = self._control.textCursor()
        cursor.beginEditBlock()
        cursor.movePosition(QtGui.QTextCursor.StartOfLine,
                            QtGui.QTextCursor.KeepAnchor)
        cursor.insertText('')
        cursor.endEditBlock()
Clears the current line of output.
angrmanagement/vendor/qtconsole/frontend_widget.py