1 |
On Mon, 10 Apr 2017 05:00:26 +0000 tuxic@××××××.de wrote: |
2 |
> 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. |
3 |
> $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. |
4 |
> |
5 |
> Is there something special terminal-wise when setting cursor colors ? |
6 |
> Why does it fail? |
7 |
|
8 |
Cursor colour has its own control sequence: |
9 |
|
10 |
http://rcr.io/words/dynamic-xterm-colors.html |
11 |
|
12 |
e.g. |
13 |
|
14 |
echo -ne "\033]12;#DD3123\007" |
15 |
|
16 |
will change your cursor to red (colour DD3123) without affecting |
17 |
normal text foreground and background colors. |
18 |
|
19 |
Best regards, |
20 |
Andrew Savchenko |