search for: otstpfn

Displaying 2 results from an estimated 2 matches for "otstpfn".

2016 Feb 16
2
[PATCH] fish: reset the console on ^Z RHBZ#1213844
Patch registers SIGTSTP hook where it sends reset terminal color control sequence. Maros Zatko (1): fish: reset the console on ^Z RHBZ#1213844 fish/fish.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) -- 2.5.0
2016 Feb 16
0
[PATCH] fish: reset the console on ^Z RHBZ#1213844
...b/fish/fish.c @@ -73,6 +73,11 @@ static void cleanup_readline (void); static char *decode_ps1 (const char *); static void add_history_line (const char *); #endif +static void set_stophandler (void); +static void restore_stophandler (void); +static void user_control_z (int sig); + +static void (*otstpfn) = SIG_DFL; static int override_progress_bars = -1; static struct progress_bar *bar = NULL; @@ -159,6 +164,64 @@ usage (int status) exit (status); } +/* + * Set the TSTP handler. + */ +static void +set_stophandler (void) +{ + otstpfn = signal (SIGTSTP, user_control_z); +} + +/* + * Resto...