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 11:48:16AM -0700, Wayne Davison wrote:
> 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.

One other complication I forgot to mention:  there were some terminals
that handled this the other way 'round -- instead of ignoring the wrap
when followed by a CR, NL, etc., they really did wrap after $COLUMNS
characters, and then ignored a NL that came right after the wrap (which
is why the termcap attribute is "xn" for ignore newline).  I think that
the vt100-compatible "firm margins" attribute may be indicated by an
"xv" in the termcap, but it's not well documented, so it seems likely
that this "xv" attribute is not going to be reliably supplied by a
variety of OSes.

So, the current "xn" logic in my posted patch seems like it is likely to
be the most compatible way to go (since I doubt anyone uses a Concept
terminal these days).

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author