|
1 | | -*term.txt* For Vim version 7.4. Last change: 2015 Nov 24 |
| 1 | +*term.txt* For Vim version 7.4. Last change: 2016 Apr 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -303,6 +303,10 @@ Added by Vim (there are no standard codes for these): |
303 | 303 | see |'ambiwidth'| |
304 | 304 | t_RB request terminal background color *t_RB* *'t_RB'* |
305 | 305 | see |'ambiwidth'| |
| 306 | + t_8f set foreground color (R, G, B) *t_8f* *'t_8f'* |
| 307 | + |xterm-true-color| |
| 308 | + t_8b set background color (R, G, B) *t_8b* *'t_8b'* |
| 309 | + |xterm-true-color| |
306 | 310 |
|
307 | 311 | KEY CODES |
308 | 312 | Note: Use the <> form if possible |
@@ -419,6 +423,22 @@ VT220, etc.). The result is that codes like <xF1> are no longer needed. |
419 | 423 | Note: This is only done on startup. If the xterm options are changed after |
420 | 424 | Vim has started, the escape sequences may not be recognized anymore. |
421 | 425 |
|
| 426 | + *xterm-true-color* |
| 427 | +Vim supports using true colors in the terminal (taken from |highlight-guifg| |
| 428 | +and |highlight-guibg|), given that terminal supports this. To make this |
| 429 | +work, 'guicolors' option needs to be set. |
| 430 | + |
| 431 | +Sometimes setting 'guicolors' is not enough and one has to set the |t_8f| and |
| 432 | +|t_8b| options explicitly. Default values of these options are |
| 433 | +`^[[38;2;%lu;%lu;%lum` and `^[[48;2;%lu;%lu;%lum` (replace `^[` with real |
| 434 | +escape) respectively, but it is only set when `$TERM` is `xterm`. Some |
| 435 | +terminals accept the same sequences, but with all semicolons replaced by |
| 436 | +colons (this is actually more compatible, but less widely supported). These |
| 437 | +options contain printf strings, with |printf()| (actually, its C equivalent |
| 438 | +hence `l` modifier) invoked with the t_ option value and three unsigned long |
| 439 | +integers that may have any value between 0 and 255 (inclusive) representing |
| 440 | +red, green and blue colors respectively. |
| 441 | + |
422 | 442 | *xterm-resize* |
423 | 443 | Window resizing with xterm only works if the allowWindowOps resource is |
424 | 444 | enabled. On some systems and versions of xterm it's disabled by default |
|
0 commit comments