Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

The `zle' command and traps



Here's an odd tidbit ... `zle' from a trap handler can actually affect the
line editor, if and only if the signal happens to arrive while ZLE is
active.  E.g. try

	TMOUT=2 ; TRAPALRM() { zle -R "Hi there, I'm a trap." }

Of course if the signal arrives when ZLE is not active, this generates an
ugly warning message.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author