1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 05:23:02 +01:00

replace more defines with enum

This commit is contained in:
Jfreegman 2013-11-10 01:23:07 -05:00
parent 16c11b33f3
commit 5a7f26cfea

View File

@ -28,14 +28,16 @@
#define CURS_Y_OFFSET 3 /* y-axis cursor offset for chat contexts */ #define CURS_Y_OFFSET 3 /* y-axis cursor offset for chat contexts */
/* Curses foreground colours (background is black) */ /* Curses foreground colours (background is black) */
#define WHITE 0 enum {
#define GREEN 1 WHITE,
#define CYAN 2 GREEN,
#define RED 3 CYAN,
#define BLUE 4 RED,
#define YELLOW 5 BLUE,
#define MAGENTA 6 YELLOW,
#define BLACK 7 MAGENTA,
BLACK,
};
/* Fixes text color problem on some terminals. /* Fixes text color problem on some terminals.
Uncomment if necessary */ Uncomment if necessary */