bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21461: grep --color can leave terminal in weird state after signal


From: Paul Eggert
Subject: bug#21461: grep --color can leave terminal in weird state after signal
Date: Fri, 11 Sep 2015 09:51:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

If grep --color is interrupted, either via ^C or ^Z or some other signal, it can leave the output terminal in a weird state. This problem was noted by Giuseppe Scrivano in <http://bugs.gnu.org/20062#143> and I'm forwarding the report here. One fix would be to do what GNU 'ls' does; note that SIGTSTP must be treated specially so that the color state resumes after restart; also, the signal handler just sets a flag that is polled periodically by the main code.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]