diff options
author | Hisham <hisham@gobolinux.org> | 2017-05-23 14:02:34 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2017-05-23 14:02:34 -0300 |
commit | 2d8dd0b29ef350731e2f1afa26af7b02f7649347 (patch) | |
tree | 1d97d270be2d633d54a1bbb6ad67c547d70d74ee /CRT.h | |
parent | b1028e03c513bc9182b7cc926170ce17a2bd0ac6 (diff) |
Work around the strange behavior of gray.
Diffstat (limited to 'CRT.h')
-rw-r--r-- | CRT.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |