diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-01 23:11:31 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-01 23:11:31 +0000 |
commit | defb53e6ce095d18a527db24c2591983b5f6532a (patch) | |
tree | 6444d3b13fdf672d4f19f51dfa86536d750c5126 | |
parent | c7fbd670e6771e54f3082db2569006c8f1d422c6 (diff) | |
download | irssi-defb53e6ce095d18a527db24c2591983b5f6532a.zip |
"ignore_sigquit" setting - when enabled, ignore SIGQUIT signals. ncurses
does this when pressing ctrl-4. With some terminals, there's no meta key and
you'll have to use ctrl-3 instead which is pretty close to 4..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@267 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/screen.c b/src/fe-text/screen.c index 5f197028..148a3745 100644 --- a/src/fe-text/screen.c +++ b/src/fe-text/screen.c @@ -86,6 +86,7 @@ void sigint_handler(int p) static void read_settings(void) { use_colors = settings_get_bool("colors"); + signal(SIGQUIT, settings_get_bool("ignore_sigquit") ? SIG_IGN : SIG_DFL); irssi_redraw(); } @@ -108,6 +109,7 @@ int init_screen(void) intrflush(stdscr, FALSE); halfdelay(1); keypad(stdscr, 1); settings_add_bool("lookandfeel", "colors", TRUE); + settings_add_bool("misc", "ignore_sigquit", FALSE); use_colors = settings_get_bool("colors") && has_colors(); if (has_colors()) start_color(); |