def _get_input_buffer_cursor_column(self):
        """ Get the column of the cursor in the input buffer, excluding the
            contribution by the prompt, or -1 if there is no such column.
        """
        prompt = self._get_input_buffer_cursor_prompt()
        if prompt is None:
            return -1
        else:
            cursor = self._control.textCursor()
            return cursor.columnNumber() - len(prompt)
 Get the column of the cursor in the input buffer, excluding the
            contribution by the prompt, or -1 if there is no such column.
        
angrmanagement/vendor/qtconsole/console_widget.py