Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] adding a new option: PROMPT_NUDGE



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