init_input();
+ tg_init();
+
tg_bgchar(' ');
tg_clear();
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);
}
done:
- tg_bgchar(' ');
- tg_bgcolor(0);
- tg_fgcolor(7);
- tg_clear();
+ tg_cleanup();
cleanup_input();