Re: Question about Ctrl-C and less - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Question about Ctrl-C and less
Date
Msg-id 9558.1129488281@sss.pgh.pa.us
Whole thread Raw
In response to Question about Ctrl-C and less  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Question about Ctrl-C and less
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> This problem has been around for ever yet obviously not everybody runs
> into it all the time like I do. Would patch to fix this be accepted or
> is there a reason why not?

I guess everybody else uses "q" not control-C to get out of less ;-)

I'm not sure I agree with the concept of blocking SIGINT in this context
--- you would not, I trust, propose blocking SIGQUIT or SIGHUP, but then
why is it ok to block SIGINT?

AFAICT it wouldn't fix the problem anyway, as there's still a bug in
less: it doesn't restore the terminal settings on exit.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: slow IN() clause for many cases
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Question about Ctrl-C and less