search for: rl_reset_after_sign

Displaying 3 results from an estimated 3 matches for "rl_reset_after_sign".

Did you mean: rl_reset_after_signal
2016 Mar 08
1
[PATCH] fish: reset the console on ^Z RHBZ#1213844
...erminal color control sequence using write and fsync. Handler is installed only if signal is not being ignored. Patch uses rl_free_line_state and rl_cleanup_after_signal to unhook readline from terminal, then it calls original TSTP handler using approach in URL below and again hooks readline using rl_reset_after_signal. Handling is based on code from: http://man7.org/tlpi/code/online/dist/pgsjc/handling_SIGTSTP.c.html This approach seems to mostly work. User is sometimes able to get readline into state when it doesn't correctly respond to newline. ^Z and subsequent fg helps there as reset command helps br...
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
...; + sigprocmask (SIG_UNBLOCK, &set, NULL); + + restore_stophandler (); + + /* Stop ourselves. */ + kill (0, SIGTSTP); + + /* Now we're stopped ... */ + + /* Reset the curses SIGTSTP signal handler. */ + set_stophandler (); + +#ifdef HAVE_LIBREADLINE + /* Restore readline state */ + rl_reset_after_signal (); +#endif + + /* Reset the signals. */ + sigprocmask (SIG_SETMASK, &oset, NULL); +} + int main (int argc, char *argv[]) { @@ -439,6 +502,15 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } + /* Register ^Z handler. We need it to reset terminal colors + */ + if (i...