I have a custom python readline completer function, in the completer function I call readline.get_line_buffer()
which gives me the current text input so that I can complete the current word in a context-sensitive way.
What I am missing now is the possibility to get the current cursor position. For example, the position is required to determine the preceding command if possible arguments are to be completed.
In the python readline module documentation, I haven't found a way to determine the position, so how is it done?