sources/coloredline.h

changeset 89
777b2a10b835
parent 88
08ccaf26cffd
child 100
d301ead29d7c
--- a/sources/coloredline.h	Thu Jul 23 01:52:04 2015 +0300
+++ b/sources/coloredline.h	Thu Jul 23 02:15:21 2015 +0300
@@ -32,6 +32,23 @@
 #include "main.h"
 BEGIN_ZFC_NAMESPACE
 
+// The order of these colors appears to differ between curses distributions (PDCurses and its
+// win32a for instance have blue and red swapped). So we need to explicitly define the values
+// of the enumerators based on their curses values.
+enum Color
+{
+	BLACK = COLOR_BLACK,
+	RED = COLOR_RED,
+	GREEN = COLOR_GREEN,
+	YELLOW = COLOR_YELLOW,
+	BLUE = COLOR_BLUE,
+	MAGENTA = COLOR_MAGENTA,
+	CYAN = COLOR_CYAN,
+	WHITE = COLOR_WHITE,
+	DEFAULT = 8,
+	NUM_COLORS
+};
+
 // -------------------------------------------------------------------------------------------------
 //
 enum

mercurial