From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21098 invoked from network); 18 Apr 1998 16:00:51 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Apr 1998 16:00:51 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA13820; Sat, 18 Apr 1998 11:42:26 -0400 (EDT) Resent-Date: Sat, 18 Apr 1998 11:42:15 -0400 (EDT) Message-ID: <19980418114212.A26415@lorien.princeton.edu> Date: Sat, 18 Apr 1998 11:42:12 -0400 From: Danek Duvall To: zsh-users@math.gatech.edu (Zsh Users) Subject: Re: bindkey -s question Mail-Followup-To: zsh-users@math.gatech.edu (Zsh Users) References: <19980418015157.A25326@lorien.princeton.edu> <199804181011.KAA08845@dal-tsa19-60.cyberramp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199804181011.KAA08845@dal-tsa19-60.cyberramp.net>; from TGAPE! on Sat, Apr 18, 1998 at 10:11:54AM +0000 Resent-Message-ID: <"jhEll.0.GN3.LdCEr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1472 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sat, Apr 18, 1998 at 10:11:54AM +0000, TGAPE! wrote: > Right here's your key - -s puts the keys on the line as if you typed > them. Try typing 'echo -n ^[c' on the command line and see what > happens. D'Oh! It completely slipped my mind that I would have to include the ^V in the bindkey out-string, too. That completely solves the problem; my saved lines are reset, the screen is cleared, and I get a prompt printed (which was what I wanted ... not to reset to a G0 charset and sane tty, though it probably wouldn't hurt to throw that in anyway :). I'm still not sure I see what's going on WRT the widget solution. It, after all, should do the echo exactly like I want. I tried putting the echo in a function and binding ^L to call that function, and that worked fine, so I don't see why it doesn't work in a widget, unless I explicitly have to tell zsh to print a prompt afterwards. Anyway, thanks much. That should teach me not to try to learn new things on so little sleep. ;-) Danek