zsh-workers
 help / color / mirror / code / Atom feed
From: "Zvi Har'El" <rl@math.technion.ac.il>
To: Jean Chalard <jean.chalard@gmail.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: [4.3 CVS] funny output with multibyte
Date: Thu, 02 Feb 2006 14:41:00 +0200	[thread overview]
Message-ID: <43E1FDDC.3020306@math.technion.ac.il> (raw)
In-Reply-To: <fb6be96e0602020133v7552893cybacb3393685147c6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

The explanation explains everything, except the percent sign. BTW, In my 
case, I see a reverse-video percent sign printed. What does it mean?

Jean Chalard wrote, On 02/02/2006 11:33 AM:

>>   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_SPACESoption, which is the new solution to the NO_PROMPT_CR debate that hasbeen around for quite a time.IIRC, by default zsh now print spaces that fill the terminal width andthen prints a CR. If nothing had been printed before, the last spaceis on the last column but the cursor is still on the same line so theCR makes it return at the beginning of the line so that you won't seean empty line. If something had been printed on the line before, thenthe cursor is going to be on the next line, so that your prompt won'tbe 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
>   

-- 
Dr. Zvi Har'El      mailto:rl@math.technion.ac.il    Department of Mathematics
tel:+972-54-4227607 icq:179294841    Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/    Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)


[-- Attachment #2: Type: text/html, Size: 2328 bytes --]

  reply	other threads:[~2006-02-02 12:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-02  9:08 François-Xavier Coudert
2006-02-02  9:33 ` Jean Chalard
2006-02-02 12:41   ` Zvi Har'El [this message]
2006-02-02 14:23     ` Vincent Lefevre
2006-02-02 15:58     ` Bart Schaefer
2006-02-02 16:27       ` Zvi Har'El

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43E1FDDC.3020306@math.technion.ac.il \
    --to=rl@math.technion.ac.il \
    --cc=jean.chalard@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).