summaryrefslogtreecommitdiff
path: root/cmd/list.ha
blob: 8c93e1a2cce2a3254eba306b5aaaebe17b6921b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use tui;
use tui::layout;
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)!;
	const sz = tty::winsize(out)!;
	let li = list::newlist(out, (1, 1), sz, "hello", "world")!;
	let l = layout::newvlayout(&li);
	l.layout.print(&l);
};