Question for Rex

May 20, 2008
Syracuse, NY, USA
Can a key-handler plugin determine the offset, in rows, of the current cursor position from the beginning of the prompt? (... which might be positive if (1) the prompt were multi-line, or (2) if a partial command has wrapped to another row.)

As I see it, KEYINFO::nHomeRow describes the beginning of the command line. So an equivalent question might be if a key-handler can determine how many rows the prompt occupies.


Similar threads