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 state = tui::init()!;
	defer tui::finish(&state);
	let li = list::newlist(&state, (1, 1), void, &list::style {
		style = &widget::style {
			border = true,
		},
		normal = widget::color::REDFG,
		marked = widget::color::BLUEBG,
	},"hello", "world", "bye", "world")!;

	let l = layout::newvlayout(&li);
	defer l.layout.finish(&l);
	l.layout.print(&l);
};
