Can't change cursor in secondary buffer #293

Open
opened 2026-01-30 21:48:10 +00:00 by claunia · 0 comments
Owner

Originally created by @parkovski on GitHub (Jun 1, 2018).

Since I'm doing all my secondary buffer issues... Using the cursor change sequences in Windows vim doesn't work. They do work in Linux vim and in the regular PowerShell prompt (Windows).

Just realized this may just be vim not setting ENABLE_VIRTUAL_TERMINAL_INPUT. Not sure though, since this is a printed sequence, and true color works - do the cursor escapes need the input or output mode set?

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    17682

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
    Execute the following in vim (in vimrc or otherwise):

let &t_SI = "\<Esc>[5 q"
let &t_SR = "\<Esc>[3 q"
let &t_EI = "\<Esc>[1 q"

Now switch between normal and insert mode. Instead of the cursor being set, you'll see [5 q / etc printed to the screen.

  • What's wrong / what should be happening instead:
    The escapes should change the cursor, not write to the screen.
Originally created by @parkovski on GitHub (Jun 1, 2018). Since I'm doing all my secondary buffer issues... Using the cursor change sequences in Windows vim doesn't work. They do work in Linux vim and in the regular PowerShell prompt (Windows). Just realized this may just be vim not setting `ENABLE_VIRTUAL_TERMINAL_INPUT`. Not sure though, since this is a printed sequence, and true color works - do the cursor escapes need the input or output mode set? * Your Windows build number: (Type `ver` at a Windows Command Prompt) 17682 * What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) Execute the following in vim (in vimrc or otherwise): ``` let &t_SI = "\<Esc>[5 q" let &t_SR = "\<Esc>[3 q" let &t_EI = "\<Esc>[1 q" ``` Now switch between normal and insert mode. Instead of the cursor being set, you'll see ` [5 q` / etc printed to the screen. * What's wrong / what should be happening instead: The escapes should change the cursor, not write to the screen.
claunia added the Resolution-Fix-Available label 2026-01-30 21:48:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#293