mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
18 lines
391 B
Rust
18 lines
391 B
Rust
extern crate cursive;
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
fn main() {
|
|
cursive::logger::init();
|
|
debug!("Starting!");
|
|
|
|
let mut siv = cursive::Cursive::default();
|
|
siv.add_global_callback('q', cursive::Cursive::quit);
|
|
siv.add_global_callback('~', cursive::Cursive::toggle_debug_view);
|
|
siv.add_global_callback('l', |_| warn!("Wooo"));
|
|
error!("BAD!!!");
|
|
|
|
siv.run();
|
|
}
|