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