diff options
| author | Julian Hurst <ark@mansus.space> | 2025-03-22 18:47:17 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2025-03-22 18:47:36 +0100 |
| commit | d531bc786a3da309d10f3bdf62ebebda345e5205 (patch) | |
| tree | 115784b094359369be2dea779cf9b34787477101 /cmd/list_nostyle.ha | |
| parent | 4c3c071e7b8f34d3b77a0232ef907350a992a49e (diff) | |
| download | hare-tui-d531bc786a3da309d10f3bdf62ebebda345e5205.tar.gz | |
Remove list.ha and refactor scrolllist
Diffstat (limited to 'cmd/list_nostyle.ha')
| -rw-r--r-- | cmd/list_nostyle.ha | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/list_nostyle.ha b/cmd/list_nostyle.ha index 4454220..133d137 100644 --- a/cmd/list_nostyle.ha +++ b/cmd/list_nostyle.ha @@ -4,13 +4,12 @@ use tui::widget; use tui::widget::list; use unix::tty; use io; -use fmt; use time; export fn main() void = { const state = tui::init()!; defer tui::finish(&state); - let li = list::newlist(&state, (1, 1), void, void,"hello", "world", "bye", "world")!; + let li = list::newlist(&state, (1, 1), void, &list::DEFAULTSTYLE,"hello", "world", "bye", "world")!; let l = layout::newvlayout(&li); l.layout.print(&l); }; |
