From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29285 invoked from network); 18 Apr 1998 06:10:31 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Apr 1998 06:10:31 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id BAA07679; Sat, 18 Apr 1998 01:52:16 -0400 (EDT) Resent-Date: Sat, 18 Apr 1998 01:52:02 -0400 (EDT) Message-ID: <19980418015157.A25326@lorien.princeton.edu> Date: Sat, 18 Apr 1998 01:51:57 -0400 From: Danek Duvall To: zsh-users@math.gatech.edu (Zsh Users) Subject: bindkey -s question Mail-Followup-To: zsh-users@math.gatech.edu (Zsh Users) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by math.gatech.edu id BAA07629 Resent-Message-ID: <"Gmzx71.0.Nt1.1-3Er"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1465 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I'm trying to bind ^L to a key sequence that will reset my xterm saved lines. The escape sequence ^[c does the trick if I do echo -n c at the command line. However, if I try bindkey -s "^L" "echo -n ^[c" it just prints a new prompt as if I'd typed return. (Note I've typed all the control charaters using ^V first; I'm just typing them safely here.) I managed to get somewhat the behavior I want by zle -N clear-screen2 function clear-screen2 () { echo -n ^[c; zle clear-screen } bindkey "^L" clear-screen2 Without the call to clear-screen, the prompt doesn't get printed, but with it there's a slight flash. I'm using xterm-70, if that makes any difference. How should I be going about this? Danek