From 679552d6db9771ddbf29bd02eb8392b3f319d4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 21 Jul 2015 17:13:58 +0200 Subject: ui: further separate curses related user interface code By now ui-curses.[hc] are the only files dealing directly with curses related functions. Integration of a proper mainloop is still pending. --- ui-curses.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'ui-curses.h') 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 #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 -- cgit v1.2.3