Mercurial > vim
diff src/term.h @ 12632:b1a7e3968a31 v8.0.1194
patch 8.0.1194: actual fg and bg colors of terminal are unknown
commit https://github.com/vim/vim/commit/65e4c4f6868882a380c319632a1728a5e7d274ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 14 23:24:25 2017 +0200
patch 8.0.1194: actual fg and bg colors of terminal are unknown
Problem: Actual fg and bg colors of terminal are unknown.
Solution: Add t_RF. Store response to t_RB and t_RF, use for terminal.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 14 Oct 2017 23:30:05 +0200 |
parents | 68d7bc045dbe |
children | 3375a8cbb442 |
line wrap: on
line diff
--- a/src/term.h +++ b/src/term.h @@ -88,6 +88,7 @@ enum SpecialKey KS_CGP, /* get window position */ KS_CWS, /* set window size in characters */ KS_CRV, /* request version string */ + KS_RFG, /* request foreground color */ KS_RBG, /* request background color */ KS_CSI, /* start insert mode (bar cursor) */ KS_CEI, /* end insert mode (block cursor) */ @@ -185,6 +186,7 @@ extern char_u *(term_strings[]); /* c #define T_CEI (TERM_STR(KS_CEI)) /* end insert mode */ #define T_CSR (TERM_STR(KS_CSR)) /* start replace mode */ #define T_CRV (TERM_STR(KS_CRV)) /* request version string */ +#define T_RFG (TERM_STR(KS_RFG)) /* request foreground RGB */ #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 */