hexchat
pub fn get_cursor_pos() -> Option<usize>
Gets the current cursor position in the text box, or None if it's deselected.
None