extern crate easycurses;
use easycurses::*;
fn main() {
preserve_panic_message(|easy| {
easy.set_cursor_visibility(CursorVisibility::Invisible);
easy.set_echo(false);
easy.print("Hello world.");
easy.refresh();
easy.get_input();
panic!("oh no");
}).unwrap_or_else(|e| match e {
Some(errmsg) => println!("Error Occurred: {}", errmsg),
None => println!("There was an error, but no error message."),
});
}