summaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2017-05-23 14:02:34 -0300
committerHisham <hisham@gobolinux.org>2017-05-23 14:02:34 -0300
commit2d8dd0b29ef350731e2f1afa26af7b02f7649347 (patch)
tree1d97d270be2d633d54a1bbb6ad67c547d70d74ee /CRT.h
parentb1028e03c513bc9182b7cc926170ce17a2bd0ac6 (diff)
Work around the strange behavior of gray.
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/CRT.h b/CRT.h
index fb824136..6391e890 100644
--- a/CRT.h
+++ b/CRT.h
@@ -9,7 +9,9 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#define ColorPair(i,j) COLOR_PAIR((7-i)*8+j)
+#define ColorIndex(i,j) ((7-i)*8+j)
+
+#define ColorPair(i,j) COLOR_PAIR(ColorIndex(i,j))
#define Black COLOR_BLACK
#define Red COLOR_RED
@@ -20,6 +22,8 @@ in the source distribution for its full text.
#define Cyan COLOR_CYAN
#define White COLOR_WHITE
+#define ColorPairGrayBlack ColorPair(Magenta,Magenta)
+
#define KEY_WHEELUP KEY_F(20)
#define KEY_WHEELDOWN KEY_F(21)
#define KEY_RECLICK KEY_F(22)

© 2014-2024 Faster IT GmbH | imprint | privacy policy