aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui-curses.h')
-rw-r--r--ui-curses.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/ui-curses.h b/ui-curses.h
index 0509f25..32cdf2f 100644
--- a/ui-curses.h
+++ b/ui-curses.h
@@ -3,6 +3,7 @@
#include <curses.h>
#include "ui.h"
+#include "syntax.h"
enum {
UI_KEY_DOWN = KEY_DOWN,
@@ -20,7 +21,26 @@ enum {
UI_KEY_SHIFT_RIGHT = KEY_SRIGHT,
};
-Ui *ui_curses_new(void);
+enum {
+ UI_COLOR_DEFAULT = -1,
+ UI_COLOR_BLACK = COLOR_BLACK,
+ UI_COLOR_RED = COLOR_RED,
+ UI_COLOR_GREEN = COLOR_GREEN,
+ UI_COLOR_YELLOW = COLOR_YELLOW,
+ UI_COLOR_BLUE = COLOR_BLUE,
+ UI_COLOR_MAGENTA = COLOR_MAGENTA,
+ UI_COLOR_CYAN = COLOR_CYAN,
+ UI_COLOR_WHITE = COLOR_WHITE,
+};
+
+enum {
+ UI_ATTR_NORMAL = A_NORMAL,
+ UI_ATTR_UNDERLINE = A_UNDERLINE,
+ UI_ATTR_REVERSE = A_REVERSE,
+ UI_ATTR_BOLD = A_BOLD,
+};
+
+Ui *ui_curses_new(Color *colors);
void ui_curses_free(Ui*);
#endif