Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Qustions about ZLE widgets.
- X-seq: zsh-workers 3229
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: borsenkow.msk@xxxxxx
- Subject: Re: Qustions about ZLE widgets.
- Date: Tue, 10 Jun 1997 15:12:41 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <Pine.SV4.3.95.970610171147.977K-100000@itsrm1> from "Andrej Borsenkow" at Jun 10, 97 05:23:00 pm
Andrej Borsenkow wrote:
>dup_characters () {
> local char
> BUFFER=""
> read -k char
I do not recommend using `read' in a widget function. I expect it will
screw up the tty mode. When I find the time to implement it, there will
be a proper way to input characters within ZLE. (It would be nice to
make read safe to call from within ZLE anyway.)
> BUFFER="$BUFFER""$char""$char"
"$BUFFER" is guaranteed to be empty at this point, as you cleared
it above. Is this what you intend?
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author