diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-21 17:13:58 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-21 18:01:58 +0200 |
| commit | 679552d6db9771ddbf29bd02eb8392b3f319d4cb (patch) | |
| tree | 2af606eb8fe1423908366313cdd5fbcdc9c46f45 /ui-curses.h | |
| parent | 38f00e3e8a50e1690dcb78cf1eca8b6befb7173b (diff) | |
| download | vis-679552d6db9771ddbf29bd02eb8392b3f319d4cb.tar.gz vis-679552d6db9771ddbf29bd02eb8392b3f319d4cb.tar.xz | |
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.
Diffstat (limited to 'ui-curses.h')
| -rw-r--r-- | ui-curses.h | 22 |
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 |
