aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d96119e..3ec964a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,6 +52,10 @@ fn main() {
52 } else { 52 } else {
53 let mut s = termion().unwrap(); 53 let mut s = termion().unwrap();
54 let app = App::load_state(); 54 let app = App::load_state();
55
56 // prevent Ctrl-C from killing the app and allow the app to override it.
57 s.clear_global_callbacks(cursive::event::Event::CtrlChar('c'));
58
55 let layout = NamedView::new( 59 let layout = NamedView::new(
56 "Frame", 60 "Frame",
57 LinearLayout::vertical().child(NamedView::new("Main", app)), 61 LinearLayout::vertical().child(NamedView::new("Main", app)),