curses
[oftp] / src / tgfx.h
index a9af11d..e26b7a0 100644 (file)
@@ -1,11 +1,29 @@
 #ifndef TGFX_H_
 #define TGFX_H_
 
+#include <stdarg.h>
+
+enum {
+       TGFX_BLACK,
+       TGFX_BLUE,
+       TGFX_GREEN,
+       TGFX_CYAN,
+       TGFX_RED,
+       TGFX_MAGENTA,
+       TGFX_YELLOW,
+       TGFX_WHITE
+};
+
 enum {
        TGFX_FRAME              = 1,
        TGFX_SHADOW             = 2
 };
 
+void tg_init(void);
+void tg_cleanup(void);
+
+void tg_redraw(void);
+
 void tg_clear(void);
 
 void tg_fgcolor(int col);
@@ -15,7 +33,8 @@ void tg_bgchar(int c);
 
 void tg_setcursor(int x, int y);
 
-void tg_printf(int x, int y, const char *fmt, ...);
+void tg_text(int x, int y, const char *fmt, ...);
+void tg_vtext(int x, int y, const char *fmt, va_list ap);
 
 void tg_rect(const char *label, int x, int y, int xsz, int ysz, unsigned int flags);