Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: PROMPT_SP
- X-seq: zsh-workers 21514
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: PROMPT_SP
- Date: Sat, 23 Jul 2005 23:10:11 -0700
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1050724052757.ZM20380@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050714182506.GB11296@xxxxxxxxx> <20050715175551.GA29713@xxxxxxxxx> <1050716160634.ZM31049@xxxxxxxxxxxxxxxxxxxxxxx> <20050716195612.GA11575@xxxxxxxxx> <200507181032.j6IAWB4q022520@xxxxxxxxxxxxxx> <20050718181330.GA19066@xxxxxxxxx> <1050723135554.ZM19813@xxxxxxxxxxxxxxxxxxxxxxx> <20050723165301.GB16571@xxxxxxxxx> <20050723171955.GC16571@xxxxxxxxx> <1050724052757.ZM20380@xxxxxxxxxxxxxxxxxxxxxxx>
On Sun, Jul 24, 2005 at 05:27:57AM +0000, Bart Schaefer wrote:
> What happens when THOSE characters cause the line to wrap?
Then you only see as much of the [EOL] string as would fit on the line
before the prompt (I had already tested that, and it seemed like a
reasonable enough behavior). I had originally thought to use just an
inverse ~ (kind of like the EOF indicator in vi/vim/less), but I thought
that the [EOL] string might be clearer. But perhaps ~EOL~ would be
better (which would degrade to a single ~ if nothing else fits).
> You don't know how many RI to emit (COLUMNS-7 is definitely wrong in
> your example).
I don't follow this logic -- the code I posted works as expected (since
the RI sequence is preceded by 5 characters and followed by 2 spaces).
Perhaps you mean only in the case where the "[EOL]" wraps to the
following line?
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author