about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-29 17:19:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-29 17:19:26 +0000
commit497a34d24955ef9e744a3ce92ec08ecf96056e64 (patch)
tree349d85197b0edcdc07061de2e436283620041af0 /Src/init.c
parentf5ed24f47ef4d2292c327d78440f4aa9d0f04f98 (diff)
downloadzsh-497a34d24955ef9e744a3ce92ec08ecf96056e64.tar.gz
zsh-497a34d24955ef9e744a3ce92ec08ecf96056e64.tar.xz
zsh-497a34d24955ef9e744a3ce92ec08ecf96056e64.zip
24894: enable colouring of highlighted text in editor
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c
index df859a619..253a689b6 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -79,6 +79,11 @@ int tclines, tccolumns;
 /**/
 mod_export int hasam, hasxn;
 
+/* Value of the Co (max_colors) entry: may not be set */
+
+/**/
+mod_export int tccolours;
+
 /* Pointer to read-key function from zle */
 
 /**/
@@ -531,7 +536,7 @@ static char *tccapnams[TC_COUNT] = {
     "cl", "le", "LE", "nd", "RI", "up", "UP", "do",
     "DO", "dc", "DC", "ic", "IC", "cd", "ce", "al", "dl", "ta",
     "md", "so", "us", "me", "se", "ue", "ch",
-    "ku", "kd", "kl", "kr", "sc", "rc", "bc"
+    "ku", "kd", "kl", "kr", "sc", "rc", "bc", "AF", "AB"
 };
 
 /* Initialise termcap */
@@ -590,6 +595,7 @@ init_term(void)
 
 	tclines = tgetnum("li");
 	tccolumns = tgetnum("co");
+	tccolours = tgetnum("Co");
 
 	/* if there's no termcap entry for cursor up, use single line mode: *
 	 * this is flagged by termflags which is examined in zle_refresh.c  *