diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-06-25 17:03:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-06-25 17:03:36 +0200 |
commit | b5c3265521749fda81ae4b052de35a0d1209cf50 (patch) | |
tree | c4e09817745505a3e66db6f65a72fa5cf63f4708 /src/term.h | |
parent | 367fbf17dad7bfb65cef8a4a18147989516218f2 (diff) | |
download | vim-git-b5c3265521749fda81ae4b052de35a0d1209cf50.tar.gz |
patch 7.4.757v7.4.757
Problem: Cannot detect the background color of a terminal.
Solution: Add T_RBG to request the background color if possible. (Lubomir
Rintel)
Diffstat (limited to 'src/term.h')
-rw-r--r-- | src/term.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.h b/src/term.h index 12d5eb909..07614ba1a 100644 --- a/src/term.h +++ b/src/term.h @@ -79,6 +79,7 @@ enum SpecialKey KS_CWP, /* set window position in pixels */ KS_CWS, /* set window size in characters */ KS_CRV, /* request version string */ + KS_RBG, /* request background color */ KS_CSI, /* start insert mode (bar cursor) */ KS_CEI, /* end insert mode (block cursor) */ KS_CSR, /* start replace mode (underline cursor) */ @@ -162,6 +163,7 @@ extern char_u *(term_strings[]); /* current terminal strings */ #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_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 */ |