diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-05 17:38:27 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-05 17:38:27 +0000 |
commit | 27b82cea35a66f0cd80f6e452b447aca9c73cdc5 (patch) | |
tree | a0e26c99301a220a26553a9df77f30b25fcb66af /src/fe-text | |
parent | a53aa269c2d062759d3e89b9f4c6cc7772201e8d (diff) | |
download | irssi-27b82cea35a66f0cd80f6e452b447aca9c73cdc5.zip |
Maybe I should have tried to run irssi after the ignore_signals "fix" ..
now really fixed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@297 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/screen.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fe-text/screen.c b/src/fe-text/screen.c index ae6fb107..8970a9b2 100644 --- a/src/fe-text/screen.c +++ b/src/fe-text/screen.c @@ -84,12 +84,10 @@ void sigint_handler(int p) readline(); } -static void read_settings(void) +static void read_signals(void) { const char *ignores; - use_colors = settings_get_bool("colors"); - ignores = settings_get_str("ignore_signals"); signal(SIGHUP, find_substr(ignores, "hup") ? SIG_IGN : SIG_DFL); signal(SIGQUIT, find_substr(ignores, "quit") ? SIG_IGN : SIG_DFL); @@ -98,6 +96,12 @@ static void read_settings(void) signal(SIGALRM, find_substr(ignores, "alrm") ? SIG_IGN : SIG_DFL); signal(SIGUSR1, find_substr(ignores, "usr1") ? SIG_IGN : SIG_DFL); signal(SIGUSR2, find_substr(ignores, "usr2") ? SIG_IGN : SIG_DFL); +} + +static void read_settings(void) +{ + use_colors = settings_get_bool("colors"); + read_signals(); irssi_redraw(); } @@ -121,7 +125,7 @@ int init_screen(void) settings_add_bool("lookandfeel", "colors", TRUE); settings_add_str("misc", "ignore_signals", ""); - read_settings(); + read_signals(); use_colors = settings_get_bool("colors") && has_colors(); if (has_colors()) start_color(); |