cursive/examples/hello_world.rs
Alexandre Bury f9c9e56518 Transform ncurses i32 key into Event enum
Prepares support for unicode char input spanning multiple ncurses
characters.
2015-05-27 18:04:33 -07:00

16 lines
306 B
Rust

extern crate cursive;
use cursive::Cursive;
use cursive::view::TextView;
fn main() {
let mut siv = Cursive::new();
// We can quit by pressing q
siv.add_global_callback('q', |s| s.quit());
siv.add_layer(TextView::new("Hello World!\nPress q to quit the application."));
siv.run();
}