1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

"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
This commit is contained in:
Timo Sirainen 2000-06-01 23:11:31 +00:00 committed by cras
parent c7fbd670e6
commit defb53e6ce

View File

@ -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();