Chet Ramey wrote:
On 5/22/14, 10:32 PM, Linda Walsh wrote:
The "beauty" of the bash-WINCH handler was that it worked
with ANY window manager or NO window manager.
Sure. It just abused the idea of running safe code in a signal handler
context.
----
It doesn't have to.
Perl used to call user SIG handlers in dangerous context, but fixed
it to only call it from the top-side.
So a user client doesn't have to worry about such details.
If it is a compiled program,the program writer has to deal with such,
but if it is an interpreted or managed environment, then only the interpreter
or managing service can receive such things -- the clients are totally dependent
on the scripting host.
Only passing on WINCH on a keyboard input makes WINCH rather pointless
since it's an output function (no keys need to be pressed
to have a window resized). So a requirement to wait until a key is pressed
sorta defeats the purpose of the signal, no?