13 lines
240 B
MoonBit
13 lines
240 B
MoonBit
///|
|
|
fn main {
|
|
try {
|
|
let tty = @native.NativeTty::new()
|
|
let (ui, m) = @lib.build(tty)
|
|
ui.start()
|
|
@native.run(() => @lib.frame(ui, m))
|
|
ui.stop()
|
|
} catch {
|
|
e => println("moonetui-demo: terminal error: \{e}")
|
|
}
|
|
}
|