Mercurial > vim
diff src/term.h @ 8969:c83e2c1e7f2b v7.4.1770
commit https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 21 21:10:14 2016 +0200
patch 7.4.1770
Problem: Cannot use true color in the terminal.
Solution: Add the 'guicolors' option. (Nikolai Pavlov)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Apr 2016 21:15:07 +0200 |
parents | 24b43dd167eb |
children | 4aead6a9b7a9 |
line wrap: on
line diff
--- a/src/term.h +++ b/src/term.h @@ -87,10 +87,12 @@ enum SpecialKey KS_CSV, /* scroll region vertical */ #endif KS_OP, /* original color pair */ - KS_U7 /* request cursor position */ + KS_U7, /* request cursor position */ + KS_8F, /* set foreground color (RGB) */ + KS_8B /* set background color (RGB) */ }; -#define KS_LAST KS_U7 +#define KS_LAST KS_8B /* * the terminal capabilities are stored in this array @@ -166,6 +168,8 @@ extern char_u *(term_strings[]); /* c #define T_RBG (term_str(KS_RBG)) /* request background RGB */ #define T_OP (term_str(KS_OP)) /* original color pair */ #define T_U7 (term_str(KS_U7)) /* request cursor position */ +#define T_8F (term_str(KS_8F)) /* set foreground color (RGB) */ +#define T_8B (term_str(KS_8B)) /* set background color (RGB) */ #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */