![]() Setting this resource overrides most of xterm's adjustments toĬursor color. ![]() Same restriction applies to control sequences which may change By default, xterm attempts to keep thisĬolor from being the same as the background color, since itĭraws the cursor by filling the background of a text cell. Specifies the color to use for the text cursor. " You can change group, for example CursorLineNr, Special, NonText etc.Īutocmd VimLeave * silent !echo -ne "\e[5 q"Īfter you change colorscheme using :colorscheme, execute :call UpdateTermCursor(), here is example:Īctually, xterm's manual is not so simple, and there is no suitable tutorial for just this feature. Here is a function that parses current color scheme's Cursor and Type hi groups for guifg(useful with set termguicolors)/ ctermfg colors, and then sets the t_SI and t_EI according to these colors: fun! UpdateTermCursor() Now using vim's t_SI and t_EI and these CSI/ OSC we can do something like that: let
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |