From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25170 invoked from network); 3 Oct 2001 20:03:19 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Oct 2001 20:03:19 -0000 Received: (qmail 4094 invoked by alias); 3 Oct 2001 20:03:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4333 Received: (qmail 4076 invoked from network); 3 Oct 2001 20:02:59 -0000 From: Bart Schaefer Message-Id: <011003130131.ZM29770@candle.brasslantern.com> Date: Wed, 3 Oct 2001 13:01:31 -0700 In-Reply-To: <20011003213437.A1668@greux.loria.fr> Comments: In reply to Vincent Lefevre "Re: get the number of active jobs to show in the prompt?" (Oct 3, 9:34pm) 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> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: Vincent Lefevre , zsh-users@sunsite.dk Subject: Re: get the number of active jobs to show in the prompt? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 3, 9:34pm, Vincent Lefevre wrote: > Subject: Re: get the number of active jobs to show in the prompt? > On Wed, Oct 03, 2001 at 17:09:26 +0000, Bart Schaefer wrote: > > } The problem is that push-line seems to send a \n. > > > > Again, that's right. ZLE doesn't know that you've erased the screen with > > "clear", so it thinks it has to move down past the current editing area > > before redrawing the new prompt. > > Why not having another widget that prints a "\r" instead of a "\n"? It's not the widget that's doing it. It's the ZLE internal screen refresh routines. All the widget does is set a flag telling the internals that the current line-editing "session" has terminated; the redraw is invoked upon return to the top of main command input loop.