- May
- 13,149
- 180
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.
Thanks!
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.
Thanks!