about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-11-05 22:24:05 +0100
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-11-05 22:24:05 +0100
commit37d0005a9e651f366076c930019464d162506a57 (patch)
tree11af20db3184af2a860791a9014e3b474de957a1 /Src/zsh.h
parent916ba78cd7c30800e7025bb91e735e27320fff29 (diff)
downloadzsh-37d0005a9e651f366076c930019464d162506a57.tar.gz
zsh-37d0005a9e651f366076c930019464d162506a57.tar.xz
zsh-37d0005a9e651f366076c930019464d162506a57.zip
43747: new module to map colours from hex triplets to the nearest matching colour
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 894158818..68731e226 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -2707,6 +2707,12 @@ struct ttyinfo {
 #define COL_SEQ_BG	(1)
 #define COL_SEQ_COUNT	(2)
 
+struct color_rgb {
+    unsigned int red, green, blue;
+};
+
+typedef struct color_rgb *Color_rgb;
+
 /*
  * Flags to testcap() and set_colour_attribute (which currently only
  * handles TSC_PROMPT).
@@ -3203,6 +3209,7 @@ enum {
 #define EXITHOOK       (zshhooks + 0)
 #define BEFORETRAPHOOK (zshhooks + 1)
 #define AFTERTRAPHOOK  (zshhooks + 2)
+#define GETCOLORATTR   (zshhooks + 3)
 
 #ifdef MULTIBYTE_SUPPORT
 /* Final argument to mb_niceformat() */