cursive/examples/hello_world.rs
Alexandre Bury d684a5bc1e Remove prelude module
Add `traits` module instead
2016-09-28 22:45:27 -07:00

17 lines
344 B
Rust

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