From 721df8ca48b8cbf0026f3a36a3d17b45cb82b850 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 23 Nov 2012 02:00:51 +0000 Subject: Stop ctrl-c quitting with /ctrlc off --- src/windows.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/windows.c') diff --git a/src/windows.c b/src/windows.c index 75154b64..7d92a419 100644 --- a/src/windows.c +++ b/src/windows.c @@ -106,7 +106,7 @@ gui_init(void) { log_info("Initialising UI"); initscr(); - cbreak(); + raw(); keypad(stdscr, TRUE); win_load_colours(); @@ -1050,6 +1050,11 @@ cons_prefs(void) else cons_show("Version checking : OFF"); + if (prefs_get_ctrlc()) + cons_show("Ctrl-c quits : ON"); + else + cons_show("Ctrl-c quits : OFF"); + if (prefs_get_notify_message()) cons_show("Message notifications : ON"); else -- cgit 1.4.1-2-gfad0