summaryrefslogtreecommitdiff
path: root/cmd/list.ha
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-03-12 22:36:13 +0100
committerJulian Hurst <ark@mansus.space>2025-03-12 22:36:13 +0100
commite074c936bb99ccfce311445f4dbf42ba964b44a4 (patch)
treea2ca68130a4a6a532df3f7362d3cad0574d50259 /cmd/list.ha
parent6bab265109546396730d84a4189610eca094c62a (diff)
downloadhare-tui-e074c936bb99ccfce311445f4dbf42ba964b44a4.tar.gz
Implement global state and clear scheduling
Diffstat (limited to 'cmd/list.ha')
-rw-r--r--cmd/list.ha6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/list.ha b/cmd/list.ha
index 0148adb..1db46b4 100644
--- a/cmd/list.ha
+++ b/cmd/list.ha
@@ -8,9 +8,9 @@ use fmt;
use time;
export fn main() void = {
- const out = tui::init()!;
- defer io::close(out)!;
- let li = list::newlist(out, (1, 1), void, &widget::style {
+ const state = tui::init()!;
+ defer tui::finish(&state);
+ let li = list::newlist(&state, (1, 1), void, &widget::style {
border = true,
colorfg = widget::color::REDFG,
colorbg = widget::color::REDBG,