From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2599 invoked from network); 10 Jun 1997 14:25:15 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 10 Jun 1997 14:25:15 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA14041; Tue, 10 Jun 1997 10:09:34 -0400 (EDT) Resent-Date: Tue, 10 Jun 1997 10:09:34 -0400 (EDT) From: Zefram Message-Id: <6793.199706101412@stone.dcs.warwick.ac.uk> Subject: Re: Qustions about ZLE widgets. To: borsenkow.msk@sni.de Date: Tue, 10 Jun 1997 15:12:41 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: from "Andrej Borsenkow" at Jun 10, 97 05:23:00 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]9462.96 X-Phase: The Moon is Waxing Crescent (27% of Full) X-US-Congress: Moronic fuckers X-Personality: INTJ X-This-is-not-HTML: Content-Type: text Resent-Message-ID: <"u5E_12.0.KR3.T0Mdp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3229 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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