download, progress, improved screen updates...
[oftp] / src / dos / tgfx.c
index c983835..228f88f 100644 (file)
@@ -11,6 +11,18 @@ static unsigned short *framebuf = (unsigned short*)0xb8000;
 
 #define UPD_ATTR       attr = (fgcol << 8) | (bgcol << 12)
 
+void tg_init(void)
+{
+}
+
+void tg_cleanup(void)
+{
+}
+
+void tg_redraw(void)
+{
+}
+
 void tg_clear(void)
 {
        tg_rect(0, 0, 0, 80, 25, 0);
@@ -108,3 +120,16 @@ void tg_rect(const char *label, int x, int y, int xsz, int ysz, unsigned int fla
                tg_text(x + 2, y, "%s", label);
        }
 }
+
+int tg_gchar(int gchar)
+{
+       switch(gchar) {
+       case TGFX_LARROW:
+               return 0x1b;
+       case TGFX_RARROW:
+               return 0x1a;
+       default:
+               break;
+       }
+       return '@';
+}