Tobias Hoffmann <smilingt...@googlemail.com> writes: > When (even accidentally) pressing Ctrl-Z in elinks and trying to go back > with "fg" it does not always restore the terminal correctly; it seems the > keyboard is in the wrong mode, so even Ctrl-L and Ctrl-C does not help. > Only way out is to Ctrl-Z again and "killall elinks"...
This is an unfortunate incompatibility between ELinks and GNU bash. It does not happen with zsh 4.3.17. When you suspend ELinks with Ctrl-Z, it stops using the terminal but keeps running in the background, so that it can still respond to requests from other ELinks processes. This is implemented in src/osdep/signals.c (sig_stsp). ELinks expects that when you return to it with "fg", the shell should send a SIGCONT signal, and ELinks would then resume using the terminal. Unfortunately, some versions of GNU bash have an optimization: they detect that the ELinks process is still running, and skip sending the SIGCONT signal. Then, ELinks does not know it should use the terminal again. http://bugzilla.elinks.cz/show_bug.cgi?id=1011 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=337159 Running "killall -s CONT elinks" from another terminal may be a workaround. _______________________________________________ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users