GtkScintilla::get_current_pos

int get_current_pos(void);

Gets the current position of cursor. It means the character position inside the text.

// echo the current cursor position.
echo $scintilla->get_current_pos();