From 9e391f5e3b2baaee0bf73e5273daf84be8a76ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 9 Oct 2015 10:31:25 +0200 Subject: ui: refactor syntax style definitions Styles can now be specified as strings which will make them easier to specify from outside the editor. The following style attributes can be given in a comma separated list: bold italics underlined fore:color back:color where color is either a hex value of the form #aabbcc or one of the predefined colors: black red green yellow blue magenta cyan white --- ui-curses.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'ui-curses.h') diff --git a/ui-curses.h b/ui-curses.h index b9b63b1..d23f8c3 100644 --- a/ui-curses.h +++ b/ui-curses.h @@ -5,26 +5,7 @@ #include "ui.h" #include "syntax.h" -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); +Ui *ui_curses_new(void); void ui_curses_free(Ui*); #endif -- cgit v1.2.3