summaryrefslogtreecommitdiff
path: root/cmd/list_nostyle.ha
blob: 133d1379834707de22698b9bb0c3887a52c90d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tui;
use tui::layout;
use tui::widget;
use tui::widget::list;
use unix::tty;
use io;
use time;

export fn main() void = {
	const state = tui::init()!;
	defer tui::finish(&state);
	let li = list::newlist(&state, (1, 1), void, &list::DEFAULTSTYLE,"hello", "world", "bye", "world")!;
	let l = layout::newvlayout(&li);
	l.layout.print(&l);
};