by zwolbers · 7y ago · 0 comments
But... That changed with recent versions of readline, which introduced 'show-mode-in-prompt' [0]. It's somewhat limited - it only prints an indicator at the beginning of the last row of the prompt. You can, however, change what text is displayed. I use it to emit escape codes that change the shape of the cursor (similar to vim itself) [1].
[0] https://www.gnu.org/software/bash/manual/html_node/Readline-...
[1] https://wiki.archlinux.org/index.php/Readline#Editing_mode
No comments yet.