Mercurial > vim
diff src/term.h @ 6874:a89cff862dda v7.4.757
patch 7.4.757
Problem: Cannot detect the background color of a terminal.
Solution: Add T_RBG to request the background color if possible. (Lubomir
Rintel)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 25 Jun 2015 17:03:36 +0200 |
parents | 7c5a0c69e1ac |
children | 24b43dd167eb |
line wrap: on
line diff
--- 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[]); /* 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_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 */