From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26953 invoked from network); 3 Oct 2001 23:15:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Oct 2001 23:15:49 -0000 Received: (qmail 22931 invoked by alias); 3 Oct 2001 23:15:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4337 Received: (qmail 22919 invoked from network); 3 Oct 2001 23:15:36 -0000 MIME-Version: 1.0 From: Vincent Lefevre To: zsh-users@sunsite.dk Date: Thu, 04 Oct 2001 01:15:27 +0200 Subject: Re: get the number of active jobs to show in the prompt? Message-ID: <4ac3e25fe9vincent@vinc17.org> In-Reply-To: <011003145139.ZM29856@candle.brasslantern.com> References: <20011002181324.A29201@greux.loria.fr> <200110022325.JAA07306@bruce.csse.monash.edu.au> <4ac3633923vincent@vinc17.org> <1011003054350.ZM25561@candle.brasslantern.com> <20011003162246.C32766@greux.loria.fr> <1011003151104.ZM26311@candle.brasslantern.com> <20011003173500.A1255@greux.loria.fr> <1011003155807.ZM26499@candle.brasslantern.com> <20011003184755.A1397@greux.loria.fr> <1011003170926.ZM29592@candle.brasslantern.com> <20011003213437.A1668@greux.loria.fr> <011003130131.ZM29770@candle.brasslantern.com> <4ac3d14900vincent@vinc17.org> <011003144640.ZM29828@candle.brasslantern.com> <011003145139.ZM29856@candle.brasslantern.com> User-Agent: Pluto/2.03e (RISC-OS/4.02) POPstar/2.03 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In article <011003145139.ZM29856@candle.brasslantern.com>, Bart Schaefer wrote: > I just realized you need to add "zle -R" right before the call to "precmd". Even with that, there are several problems: _ the %? has a bad value; _ I need to display RPS1 too (if it was displayed before the clear-screen); _ it doesn't work with non-PS1 prompts (with such prompts the current behaviour would be OK for me). -- Vincent Lefèvre - Web: - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA