added cstack to viewer + implemented inline highlighting
[smdp.git] / include / viewer.h
index 6b6d108..c4f4175 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <ncurses.h>
 
+#include "cstack.h"
+
 #define CP_WHITE  1 // 255
 #define CP_BLUE   2 // 123
 #define CP_RED    3 // 213
@@ -11,7 +13,8 @@
 #define FADE_DELAY 15000 // micro seconds
 
 int ncurses_display(deck_t *deck, int notrans, int nofade);
-void add_line(WINDOW *window, int y, int x, line_t *line);
+void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols);
+int is_attron(cstack_t *stack, char c);
 void fade_out(WINDOW *window, int trans, int colors);
 void fade_in(WINDOW *window, int trans, int colors);