Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] adding a new option: PROMPT_NUDGE
- X-seq: zsh-workers 21450
 
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
 
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- Subject: Re: [PATCH] adding a new option: PROMPT_NUDGE
 
- Date: Tue, 12 Jul 2005 11:48:16 -0700
 
- Cc: zsh-workers@xxxxxxxxxx
 
- In-reply-to: <1050712141921.ZM26534@xxxxxxxxxxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
 
- References: <cf7bbda90507110747669da77b@xxxxxxxxxxxxxx> <20050711151454.GH12208@xxxxxxxxxxxxxxxx> <20050711174055.GB9294@xxxxxxxxx> <1050712032050.ZM26026@xxxxxxxxxxxxxxxxxxxxxxx> <20050712053509.GB10890@xxxxxxxxx> <1050712141921.ZM26534@xxxxxxxxxxxxxxxxxxxxxxx>
 
On Tue, Jul 12, 2005 at 02:19:21PM +0000, Bart Schaefer wrote:
> I'd like some opinions from people whose first language is not English.
I'm certainly open to suggestions.  Other possibilities that occurred to
me include PROMPT_REPOSITION, PROMPT_PRESERVE, PROMPT_PRESERVE_PARTIAL,
and the simple (yet cryptic) PROMPT_SP (where SP can stand for either
"spaces" or "save partial").
 
> Is that [xn logic] to avoid wrapping in the event that the cursor
> starts out in column zero?
Yes.  Most terminals prior to the vt100 wrapped anytime $COLUMNS chars
appeared on a single line (as long as the terminal had line-wrapping
enabled), so such a terminal would generate an empty line if we were to
output $COLUMNS spaces at the start of a line.  The vt100 started a
tradition where the terminal delayed the wrap at the end of the line to
see if it was going to be followed by more literal characters or some
cursor-movement chars.  So, we need to vary the length of the spaces
depending on if the terminal has this delayed-wrap logic or not.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author