curses
[oftp] / src / main.c
index 721cd9a..d6ec65b 100644 (file)
@@ -20,6 +20,8 @@ int main(void)
 
        init_input();
 
+       tg_init();
+
        tg_bgchar(' ');
        tg_clear();
 
@@ -29,16 +31,7 @@ int main(void)
        tui_add_list_item(uilist, "another item");
        tui_add_list_item(uilist, "foo");
 
-       /*
-       tg_bgcolor(1);
-       tg_rect("Remote", 0, 0, 40, 23, TGFX_FRAME);
-       tg_rect("Local", 40, 0, 40, 23, TGFX_FRAME);
-
-       tg_bgcolor(0);
-       tg_fgcolor(7);
-       tg_text(0, 23, ">");
-       tg_setcursor(2, 23);
-       */
+       tg_setcursor(0, 24);
 
        tui_draw(uilist);
 
@@ -54,10 +47,7 @@ int main(void)
        }
 
 done:
-       tg_bgchar(' ');
-       tg_bgcolor(0);
-       tg_fgcolor(7);
-       tg_clear();
+       tg_cleanup();
 
        cleanup_input();