Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
8968:4794235d1bb0 | 8969:c83e2c1e7f2b |
---|---|
85 KS_CSR, /* start replace mode (underline cursor) */ | 85 KS_CSR, /* start replace mode (underline cursor) */ |
86 #ifdef FEAT_WINDOWS | 86 #ifdef FEAT_WINDOWS |
87 KS_CSV, /* scroll region vertical */ | 87 KS_CSV, /* scroll region vertical */ |
88 #endif | 88 #endif |
89 KS_OP, /* original color pair */ | 89 KS_OP, /* original color pair */ |
90 KS_U7 /* request cursor position */ | 90 KS_U7, /* request cursor position */ |
91 KS_8F, /* set foreground color (RGB) */ | |
92 KS_8B /* set background color (RGB) */ | |
91 }; | 93 }; |
92 | 94 |
93 #define KS_LAST KS_U7 | 95 #define KS_LAST KS_8B |
94 | 96 |
95 /* | 97 /* |
96 * the terminal capabilities are stored in this array | 98 * the terminal capabilities are stored in this array |
97 * IMPORTANT: When making changes, note the following: | 99 * IMPORTANT: When making changes, note the following: |
98 * - there should be an entry for each code in the builtin termcaps | 100 * - there should be an entry for each code in the builtin termcaps |
164 #define T_CSR (term_str(KS_CSR)) /* start replace mode */ | 166 #define T_CSR (term_str(KS_CSR)) /* start replace mode */ |
165 #define T_CRV (term_str(KS_CRV)) /* request version string */ | 167 #define T_CRV (term_str(KS_CRV)) /* request version string */ |
166 #define T_RBG (term_str(KS_RBG)) /* request background RGB */ | 168 #define T_RBG (term_str(KS_RBG)) /* request background RGB */ |
167 #define T_OP (term_str(KS_OP)) /* original color pair */ | 169 #define T_OP (term_str(KS_OP)) /* original color pair */ |
168 #define T_U7 (term_str(KS_U7)) /* request cursor position */ | 170 #define T_U7 (term_str(KS_U7)) /* request cursor position */ |
171 #define T_8F (term_str(KS_8F)) /* set foreground color (RGB) */ | |
172 #define T_8B (term_str(KS_8B)) /* set background color (RGB) */ | |
169 | 173 |
170 #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ | 174 #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ |
171 #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */ | 175 #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */ |
172 #define TMODE_RAW 2 /* terminal mode for Normal and Insert mode */ | 176 #define TMODE_RAW 2 /* terminal mode for Normal and Insert mode */ |