Gtk.TextBuffer:cursor-position

"cursor-position"             Number                : Read

The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.

Since 2.10