-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic cursorShape for shell vi mode #4734
Comments
Windows Terminal already supports the DECSCUSR control sequence with parameters from 1 to 8. There's nothing else that Windows Terminal has to do, here, pace the bug about it not taking effect until flushed. The rest is all at the host end. The rest is a matter of having the |
Indeed! Thanks @jdebp. In addition, somebody's put together a solution for versions of readline that do not take |
Thank you for the responses. In my case, cygwin with bash 4.4.12 did not work with |
Hello Terminal team 👋
Description of the new feature/enhancement
When normal mode is active in vim or shell vi mode, the cursor stays in the same style ("bar"). On mac and linux terminals the cursor would typically change to something like the "emptyBox" shape for normal mode and "bar" for insert mode.
To reproduce this behavior, we can use Windows Terminal to run cygwin or access a linux machine via ssh and run the following:
set -o vi
Then, pressing escape will enter normal mode where we might expect to see a box highlighting the current letter. Instead we still see the "bar" style, moved one character back. The "box" appearance is helpful to see which character is selected and as a visual aid to know when insert or normal mode is active.
I found a few workarounds for vim using vimrc (i.e. in issue #68) but have not yet seen a suggestion for shell vi mode.
The text was updated successfully, but these errors were encountered: