Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [4.3 CVS] funny output with multibyte
- X-seq: zsh-workers 22182
- From: Jean Chalard <jean.chalard@xxxxxxxxx>
- To: François-Xavier Coudert <fxcoudert@xxxxxxxxx>
- Subject: Re: [4.3 CVS] funny output with multibyte
- Date: Thu, 2 Feb 2006 18:33:54 +0900
- Cc: zsh-workers@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HSSmsJWTICYPbInnkzp4oHnYnyPNReYTU3avH7XtZUrnxLHcathtR2VHKdyL2cEJ3tAcpHu+LTg/AzLO56RZiKkEuiMSybkm9sXIrYE4XlbgTbUlXi3IP6ys5sPU0Hsw+U7p6a82xYh6nHNRbXLwIcfm7k+3y/e/wfaWxjYZZ4s=
- In-reply-to: <19c433eb0602020108k51d5a9abscece73c96079bec5@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19c433eb0602020108k51d5a9abscece73c96079bec5@xxxxxxxxxxxxxx>
> 3. When the function returns, the screen turns into :
>
> pc31 ~ $ sleep 10
> azerty%
> pc31 ~ $ azerty
>
> Please note that the percent sign (%) is followed by spaces up to the
> end of the line, and that there is no newline after that.
>
> While it's not a major problem, I found that amazing. Bug or feature?
I think you are experiencing the effects of the new PROMPT_SPACES
option, which is the new solution to the NO_PROMPT_CR debate that has
been around for quite a time.
IIRC, by default zsh now print spaces that fill the terminal width and
then prints a CR. If nothing had been printed before, the last space
is on the last column but the cursor is still on the same line so the
CR makes it return at the beginning of the line so that you won't see
an empty line. If something had been printed on the line before, then
the cursor is going to be on the next line, so that your prompt won't
be printed over previous data that was not followed by a NL.
This ought to end the debate about PROMPT_CR :)
--
J
"Toi, je te trouve pas la même tête que sur la page précédente" -- Wakamiya
Messages sorted by:
Reverse Date,
Date,
Thread,
Author