diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-10 15:59:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-10 15:59:11 +0200 |
commit | f59c6e8cee092433d325ba21a107654a8d84f776 (patch) | |
tree | c099b90bce7ba9db27eeff0eb0c7368b93a70446 /src/structs.h | |
parent | 07b46af645fa7a2b95afec3f3d87c91942d9cbd0 (diff) |
patch 8.0.1685: can't set ANSI colors of a terminal windowv8.0.1685
Problem: Can't set ANSI colors of a terminal window.
Solution: Add term_setansicolors(), term_getansicolors() and
g:term_ansi_colors. (Andy Massimino, closes #2747)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index db2792bbd7..d3f98ac12f 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1708,7 +1708,7 @@ struct channel_S { #define JO2_EOF_CHARS 0x1000 /* "eof_chars" */ #define JO2_NORESTORE 0x2000 /* "norestore" */ #define JO2_TERM_KILL 0x4000 /* "term_kill" */ -#define JO2_ALL 0x7FFF +#define JO2_ANSI_COLORS 0x8000 /* "ansi_colors" */ #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) #define JO_CB_ALL \ @@ -1777,6 +1777,9 @@ typedef struct int jo_term_finish; char_u *jo_eof_chars; char_u *jo_term_kill; +# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) + long_u jo_ansi_colors[16]; +# endif #endif } jobopt_T; |