patch 8.0.1685: can't set ANSI colors of a terminal window
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)
diff --git a/src/structs.h b/src/structs.h
index db2792b..d3f98ac 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1708,7 +1708,7 @@
#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 @@
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;