blob: 13c28082d018d984a38f67a907a3158244b1987b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use tui;
use tui::layout;
use tui::widget;
use tui::widget::list;
use unix::tty;
use io;
use fmt;
use time;
export fn main() void = {
const out = tui::init()!;
defer io::close(out)!;
let li = list::newlist(out, (1, 1), tty::ttysize {
rows = 3,
columns = 4,
}, &widget::style {
border = true,
colorfg = widget::color::BLUEFG,
colorbg = widget::color::BLUEBG,
}, "hello", "world", "bye", "world")!;
let l = layout::newvlayout(&li);
l.layout.print(&l);
};
|