1 #if !defined( VIEWER_H )
5 * Functions necessary to display a deck of slides in different color modes
6 * using ncurses. Only white, red, and blue are supported, as they can be
7 * faded in 256 color mode.
9 * function: ncurses_display initializes ncurses, defines colors, calculates
10 * window geometry and handles key strokes
11 * function: add_line detects inline markdown formating and prints line char
13 * function: fade_in, fade_out implementing color fading in 256 color mode
22 #define CP_WHITE 1 // 255
23 #define CP_BLUE 2 // 123
24 #define CP_RED 3 // 213
25 #define CP_YELLOW 4 // 208
27 #define FADE_DELAY 15000 // micro seconds
29 int ncurses_display(deck_t *deck, int notrans, int nofade);
30 void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols);
31 void fade_out(WINDOW *window, int trans, int colors);
32 void fade_in(WINDOW *window, int trans, int colors);
34 #endif // !defined( VIEWER_H )