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
Cursor shape not preserved #903
Comments
Noticed the same behavior. In my case, the cursor changes back to legacy shape as soon as I start typing. |
Same thing happens to me. Typing immediately changes the cursor back to default shape. Removing the module using "Remove-Module PSReadline" fixes the issue. |
This has been bugging me for a long time, I hope this is fixed soon. |
I only see code that changes the cursor size in Vi mode with the ViModeIndicator=Cursor. Neither setting is a default. Are folks seeing this problem with other modes? Assuming so (based on the number of comments/thumbs up), I wonder if the cursor size is being changed in .Net somehow? |
@lzybkr This only became an issue for me once I upgraded to Windows 10 1903. I've seen this behavior in the default Windows mode and Vi mode. |
I have this in the default editing mode as well, I tried to enable Vi mode to test but I was not sure if it worked. |
Related to #964 |
I think this is probably related to PSReadLine resetting the |
OK, it turns out setting
Logged the issue microsoft/terminal#4124 in Windows Terminal repo. |
PSReadLine resets the cursor shape, causing the user's setting to no longer be applied. If PSReadLine has a reason to change the cursor shape temporarily, it should restore the user's setting when it's done.
Migrated from microsoft/terminal#409.
Duplicate: microsoft/terminal#1145 -- it has detailed repro steps to show the problem.
Note
This is not related to the VI edit mode.
This only happens when setting cursor shape in the
Terminal
tab in console host.When using Windows Terminal and set the cursor shape in
Profile.json
, the cursor doesn't get reset by PSReadLine.Environment data
Steps to reproduce or exception report
The text was updated successfully, but these errors were encountered: