[vim/vim] Cursor highlight does not work in terminal (Issue #19882)

11 views
Skip to first unread message

Josh Klodnicki

unread,
Apr 1, 2026, 1:33:25 PMApr 1
to vim/vim, Subscribed
joshklod created an issue (vim/vim#19882)

Steps to reproduce

Reproduce

  1. $ vim --clean -u NONE
  2. itest<Esc>
  3. :hi Cursor ctermbg=blue ctermfg=yellow
  4. :set tgc
  5. :hi Cursor guibg=blue guifg=yellow

Confirm that Vim's termcap sequences are correct

  1. $ infocmp -x1 | grep Cs=
            Cs=\E]12;%p1%s\007,
    
  2. $ vim --clean -u NONE
    :set t_SC t_EC
      t_SC=^[]12;
      t_EC=^G
    

Expected behaviour

A blue cursor with yellow text after steps 3 and 5, just like gvim.

Version of Vim

9.2.0277

Environment

OS Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 GNU/Linux
Terminal Windows Terminal 1.23.20211.0
$TERM xterm-256color
Shell GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19882@github.com>

Josh Klodnicki

unread,
Apr 1, 2026, 1:38:55 PMApr 1
to vim/vim, Subscribed
joshklod left a comment (vim/vim#19882)

I can also confirm that tput Cs '#0000ff' results in a blue cursor in the shell.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19882/4171833955@github.com>

charan

unread,
Jun 19, 2026, 12:20:05 PMJun 19
to vim/vim, Subscribed
chrnz008 left a comment (vim/vim#19882)

@joshklod your terminal controls your cursor color try changing it in windows terminal


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19882/4753230535@github.com>

Josh Klodnicki

unread,
Jul 8, 2026, 1:36:13 PM (19 hours ago) Jul 8
to vim/vim, Subscribed
joshklod left a comment (vim/vim#19882)

your terminal controls your cursor color

Yes, but that can be overridden via escape sequence as I noted above. That's what Vim should be doing.


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19882/4917512543@github.com>

Reply all
Reply to author
Forward
0 new messages