def _get_input_buffer_cursor_line(self):
        """ Get the text of the line of the input buffer that contains the
            cursor, or None if there is no such line.
        """
        prompt = self._get_input_buffer_cursor_prompt()
        if prompt is None:
            return None
        else:
            cursor = self._control.textCursor()
            text = cursor.block().text()
            return text[len(prompt):]
 Get the text of the line of the input buffer that contains the
            cursor, or None if there is no such line.
        
angrmanagement/vendor/qtconsole/console_widget.py