When changing cursor shape using DECSCUSR escape sequences, the cursor shape doesn't change until the cursor is moved #4106
Labels
Area-VT
Virtual Terminal sequence support
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Priority-2
A description (P2)
Product-Conpty
For console issues specifically related to conpty
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
Environment
Steps to reproduce
I tried to fix PowerShell/PSReadLine#1233 in PSReadLine by always applying the standard escape sequences, so the cursor shape can be changed when switching between Insert and Command modes in the VI edit mode.
A quick fix looks like this: daxian-dbw/PSReadLine@d29dad9
It works fine in the terminals on Linux and macOS.
However, in Windows Terminal and VS Code terminal, the cursor shape doesn't changed immediately after writing out the escape sequences. The change happens only after the cursor is moved.
Expected behavior
The behavior should be the same as on Linux.
a
.Actual behavior
This is what happens in Windows Terminal.
a
. Cursor shape is changed to blinking bar. Moving the cursor with LeftArrow or RightArrow will also trigger the cursor shape change.The text was updated successfully, but these errors were encountered: