summaryrefslogtreecommitdiff
path: root/cmd/list.ha
diff options
context:
space:
mode:
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,