diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-29 22:59:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-29 22:59:22 +0200 |
commit | 61be73bb0f965a895bfb064ea3e55476ac175162 (patch) | |
tree | 1e8383f05effc05a320c2e803ff6f2b431c2507c /runtime/doc/term.txt | |
parent | bb82762907ba024717ad9af3b229c2fa6405cd36 (diff) | |
download | vim-git-61be73bb0f965a895bfb064ea3e55476ac175162.tar.gz |
patch 7.4.1799v7.4.1799
Problem: 'guicolors' is a confusing option name.
Solution: Use 'termguicolors' instead. (Hirohito Higashi)
Diffstat (limited to 'runtime/doc/term.txt')
-rw-r--r-- | runtime/doc/term.txt | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt index 0ac5b41b3..1eea20f74 100644 --- a/runtime/doc/term.txt +++ b/runtime/doc/term.txt @@ -1,4 +1,4 @@ -*term.txt* For Vim version 7.4. Last change: 2016 Apr 21 +*term.txt* For Vim version 7.4. Last change: 2016 Apr 29 VIM REFERENCE MANUAL by Bram Moolenaar @@ -302,7 +302,6 @@ Added by Vim (there are no standard codes for these): t_u7 request cursor position (for xterm) *t_u7* *'t_u7'* see |'ambiwidth'| t_RB request terminal background color *t_RB* *'t_RB'* - see |'ambiwidth'| t_8f set foreground color (R, G, B) *t_8f* *'t_8f'* |xterm-true-color| t_8b set background color (R, G, B) *t_8b* *'t_8b'* @@ -425,19 +424,23 @@ Vim has started, the escape sequences may not be recognized anymore. *xterm-true-color* Vim supports using true colors in the terminal (taken from |highlight-guifg| -and |highlight-guibg|), given that terminal supports this. To make this -work, 'guicolors' option needs to be set. - -Sometimes setting 'guicolors' is not enough and one has to set the |t_8f| and -|t_8b| options explicitly. Default values of these options are -`^[[38;2;%lu;%lu;%lum` and `^[[48;2;%lu;%lu;%lum` (replace `^[` with real -escape) respectively, but it is only set when `$TERM` is `xterm`. Some -terminals accept the same sequences, but with all semicolons replaced by -colons (this is actually more compatible, but less widely supported). These -options contain printf strings, with |printf()| (actually, its C equivalent -hence `l` modifier) invoked with the t_ option value and three unsigned long -integers that may have any value between 0 and 255 (inclusive) representing -red, green and blue colors respectively. +and |highlight-guibg|), given that the terminal supports this. To make this +work the 'termguicolors' option needs to be set. + +Sometimes setting 'termguicolors' is not enough and one has to set the |t_8f| +and |t_8b| options explicitly. Default values of these options are +"^[[38;2;%lu;%lu;%lum" and "^[[48;2;%lu;%lu;%lum" respectively, but it is only +set when `$TERM` is `xterm`. Some terminals accept the same sequences, but +with all semicolons replaced by colons (this is actually more compatible, but +less widely supported): > + set t_8f=^[[38:2:%lu:%lu:%lum + set t_8b=^[[48:2:%lu:%lu:%lum +(replace `^[` with real escape) + +These options contain printf strings, with |printf()| (actually, its C +equivalent hence `l` modifier) invoked with the t_ option value and three +unsigned long integers that may have any value between 0 and 255 (inclusive) +representing red, green and blue colors respectively. *xterm-resize* Window resizing with xterm only works if the allowWindowOps resource is |