Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
The `zle' command and traps
- X-seq: zsh-workers 9989
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: The `zle' command and traps
- Date: Sat, 4 Mar 2000 04:46:03 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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