1 #ifndef COLORS_H
2 #define COLORS_H
4 #include "config.h"
6 #ifdef HAVE_NCURSESW_NCURSES_H
7 #include <ncursesw/ncurses.h>
8 #else
9 #include <ncurses.h>
10 #endif
12 enum color {
13 COLOR_TITLE = 1,
14 COLOR_TITLE_BOLD,
15 COLOR_LINE,
16 COLOR_LINE_BOLD,
17 COLOR_LIST,
18 COLOR_LIST_BOLD,
19 COLOR_PROGRESSBAR,
20 COLOR_STATUS,
21 COLOR_STATUS_BOLD,
22 COLOR_STATUS_TIME,
23 COLOR_STATUS_ALERT,
24 COLOR_END
25 };
27 short colors_str2color(const char *str);
29 #ifdef ENABLE_COLORS
30 int colors_assign(const char *name, const char *value);
31 int colors_define(const char *name, short r, short g, short b);
32 int colors_start(void);
33 #endif
35 int colors_use(WINDOW *w, enum color id);
37 #endif /* COLORS_H */