Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
char ebuf[BUFSIZ];
int rlen, elen;
madtty_handler_t handler;
+ void *data;
};
typedef struct t_row_t {
{
t->handler = handler;
}
+
+void madtty_set_data(madtty_t *t, void *data)
+{
+ t->data = data;
+}
+
+void *madtty_get_data(madtty_t *t)
+{
+ return t->data;
+}
void madtty_init_colors(void);
void madtty_init_vt100_graphics(void);
void madtty_set_handler(madtty_t *, madtty_handler_t);
+void madtty_set_data(madtty_t *, void *);
+void *madtty_get_data(madtty_t *);
int madtty_color_pair(int fg, int bg);
madtty_t *madtty_create(int rows, int cols);