From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28995 invoked from network); 14 Oct 2001 18:11:43 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Oct 2001 18:11:43 -0000 Received: (qmail 28281 invoked by alias); 14 Oct 2001 18:11:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16036 Received: (qmail 28264 invoked from network); 14 Oct 2001 18:11:33 -0000 From: Bart Schaefer Message-Id: <1011014181129.ZM6424@candle.brasslantern.com> Date: Sun, 14 Oct 2001 18:11:29 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Clearing RPS1: Is there a better way to do this? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've decided I'd like the right prompt to disappear when I accept a command, because it gets in the way when doing cut-and-paste. So I'm fooling with something like this: wipe-RPS1-and-accept-line () { CURSOR=$#BUFFER zle -R print -nP %E zle .$WIDGET } zle -N accept-line wipe-RPS1-and-accept-line The problem is that this prevents auto-removal of suffixes when RETURN is pressed immediately after TAB. Also, it means re-binding every variation of accept-line (accept-and-hold, etc.). Othere suggestions (including Geoff jumping up and offering to implement this in the ZLE code) would be welcome. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net