Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: get the number of active jobs to show in the prompt?
- X-seq: zsh-users 4333
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: get the number of active jobs to show in the prompt?
- Date: Wed, 3 Oct 2001 13:01:31 -0700
- In-reply-to: <20011003213437.A1668@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011002181324.A29201@xxxxxxxxxxxxxx> <200110022325.JAA07306@xxxxxxxxxxxxxxxxxxxxxxxx> <4ac3633923vincent@xxxxxxxxxx> <1011003054350.ZM25561@xxxxxxxxxxxxxxxxxxxxxxx> <20011003162246.C32766@xxxxxxxxxxxxxx> <1011003151104.ZM26311@xxxxxxxxxxxxxxxxxxxxxxx> <20011003173500.A1255@xxxxxxxxxxxxxx> <1011003155807.ZM26499@xxxxxxxxxxxxxxxxxxxxxxx> <20011003184755.A1397@xxxxxxxxxxxxxx> <1011003170926.ZM29592@xxxxxxxxxxxxxxxxxxxxxxx> <20011003213437.A1668@xxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author