added cstack to viewer + implemented inline highlighting
[smdp.git] / include / viewer.h
1 #if !defined( VIEWER_H )
2 #define VIEWER_H
3
4 #include <ncurses.h>
5
6 #include "cstack.h"
7
8 #define CP_WHITE  1 // 255
9 #define CP_BLUE   2 // 123
10 #define CP_RED    3 // 213
11 #define CP_YELLOW 4 // 208
12
13 #define FADE_DELAY 15000 // micro seconds
14
15 int ncurses_display(deck_t *deck, int notrans, int nofade);
16 void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols);
17 int is_attron(cstack_t *stack, char c);
18 void fade_out(WINDOW *window, int trans, int colors);
19 void fade_in(WINDOW *window, int trans, int colors);
20
21 #endif // !defined( VIEWER_H )