On Mon, 10 Apr 2017 05:00:26 +0000 tu...@posteo.de wrote: > I am playing around with colorschemes in vim and came across a problem: It > seems impossible to change the fore-/background color of the cursor itself. > $TERM is xterm-256color and vim itself offers settings for the color of the > cursor. Different colortests for terminals validate that the terminal is able > to display 256 colors. > > Is there something special terminal-wise when setting cursor colors ? > Why does it fail?
Cursor colour has its own control sequence: http://rcr.io/words/dynamic-xterm-colors.html e.g. echo -ne "\033]12;#DD3123\007" will change your cursor to red (colour DD3123) without affecting normal text foreground and background colors. Best regards, Andrew Savchenko
pgpF2WZYsRDLk.pgp
Description: PGP signature