version 1.5, 1999/09/30 05:53:04 |
version 1.6, 1999/09/30 08:34:24 |
|
|
/* Signal handler for the window change signal (SIGWINCH). This just |
/* Signal handler for the window change signal (SIGWINCH). This just |
sets a flag indicating that the window has changed. */ |
sets a flag indicating that the window has changed. */ |
|
|
RETSIGTYPE window_change_handler(int sig) |
void window_change_handler(int sig) |
{ |
{ |
received_window_change_signal = 1; |
received_window_change_signal = 1; |
signal(SIGWINCH, window_change_handler); |
signal(SIGWINCH, window_change_handler); |
|
|
/* Signal handler for signals that cause the program to terminate. These |
/* Signal handler for signals that cause the program to terminate. These |
signals must be trapped to restore terminal modes. */ |
signals must be trapped to restore terminal modes. */ |
|
|
RETSIGTYPE signal_handler(int sig) |
void signal_handler(int sig) |
{ |
{ |
if (in_raw_mode) |
if (in_raw_mode) |
leave_raw_mode(); |
leave_raw_mode(); |