mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -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:
parent
c7fbd670e6
commit
defb53e6ce
@ -86,6 +86,7 @@ void sigint_handler(int p)
|
|||||||
static void read_settings(void)
|
static void read_settings(void)
|
||||||
{
|
{
|
||||||
use_colors = settings_get_bool("colors");
|
use_colors = settings_get_bool("colors");
|
||||||
|
signal(SIGQUIT, settings_get_bool("ignore_sigquit") ? SIG_IGN : SIG_DFL);
|
||||||
irssi_redraw();
|
irssi_redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ int init_screen(void)
|
|||||||
intrflush(stdscr, FALSE); halfdelay(1); keypad(stdscr, 1);
|
intrflush(stdscr, FALSE); halfdelay(1); keypad(stdscr, 1);
|
||||||
|
|
||||||
settings_add_bool("lookandfeel", "colors", TRUE);
|
settings_add_bool("lookandfeel", "colors", TRUE);
|
||||||
|
settings_add_bool("misc", "ignore_sigquit", FALSE);
|
||||||
|
|
||||||
use_colors = settings_get_bool("colors") && has_colors();
|
use_colors = settings_get_bool("colors") && has_colors();
|
||||||
if (has_colors()) start_color();
|
if (has_colors()) start_color();
|
||||||
|
Loading…
Reference in New Issue
Block a user