diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/list.ha | 2 | ||||
| -rw-r--r-- | cmd/text.ha | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/cmd/list.ha b/cmd/list.ha index 1db46b4..348083e 100644 --- a/cmd/list.ha +++ b/cmd/list.ha @@ -15,6 +15,8 @@ export fn main() void = { colorfg = widget::color::REDFG, colorbg = widget::color::REDBG, },"hello", "world", "bye", "world")!; + let l = layout::newvlayout(&li); + defer l.layout.finish(&l); l.layout.print(&l); }; diff --git a/cmd/text.ha b/cmd/text.ha index f7ce1fc..7c569a8 100644 --- a/cmd/text.ha +++ b/cmd/text.ha @@ -17,7 +17,7 @@ export fn main() void = { let l = layout::newvlayout(&txt); l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); let st = txt.widget.style as *widget::style; @@ -25,37 +25,37 @@ export fn main() void = { text::settext(&txt, "bye world"); l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::BROWNFG; l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::BLUEFG; l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::MAGENTAFG; l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::CYANFG; l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::WHITEFG; l.layout.print(&l); - tui::clear(&state); + //tui::clear(&state); time::sleep(1 * time::SECOND); st.colorfg = widget::color::DEFAULTFG; |
