bug in pg on System V

Stephen J. Friedl friedl at vsi.COM
Mon Apr 17 03:33:41 AEST 1989


In article <10038 at smoke.BRL.MIL>, gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
> The VT100's margin wrap feature is exceedingly baroque and does
> not match the model associated with termcap/terminfo "am" capability,
> which describes a simple immediately-wraparound feature (the VT100
> maintains internal state and defers wraparound until it thinks it
> should have been done, but it gets confused by certain character
> sequences).

VT100 deferred autowrap waits until it receives the 81st character
on a line before thinking about an autowrap.  If this character is
printable, wrap occurs before it is printed, but if the character is
a newline then it is only done once.

This "feature" lets you look at an 80-column card image without
getting the double spacing that immediate autowrap would cause.
Since many more of us read 80-column card images than use screen-
oriented editors, this is a good thing.

> VT100 termcap/terminfo descriptions should NOT specify "am" even if
> the margin wrap option of the terminal is enabled.

Some terminals (HDS, for instance) let you specify which kind of
autowrap you want to use, and System V terminfo (on the 3B2, at least)
lets you specify that this happens: look at "eat_newline_glitch" or
the capname "xenl".

We used to have all kinds of problems with our vt220-compatible
terminals, but when we set "xenl" and "am" together, it never messes
up anymore, except for all those bugs it puts in my C code :-).

     Steve

-- 
Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442 
3B2-kind-of-guy   / friedl at vsi.com  / {attmail, uunet, etc}!vsi!friedl

"I'm making a fashion statement: I'm saying I don't know how to dress." - me



More information about the Comp.bugs.sys5 mailing list