[comp.terminals] unwanted wrap using vt100-w

mckie@amelia.nas.nasa.gov (William McKie) (02/10/90)

Anyone know why vi wraps lines after 80 columns when using
a TERM of vt100-w and the terminal is set to 132 columns?
I'm seeing the problem on SunOS 4.0.3 and BSD 4.3 (termcap)
systems, but not on Unicos 5.0 (terminfo) systems.  Terminals
tried included a real vt100, plus a HDS and a GraphOn-235
set to emulate a vt100.  Thanx.

mckie@sky.arc.nasa.gov

romain@pyramid.pyramid.com (Romain Kang) (02/12/90)

| Anyone know why vi wraps lines after 80 columns when using
| a TERM of vt100-w and the terminal is set to 132 columns?
| I'm seeing the problem on SunOS 4.0.3 and BSD 4.3 (termcap)
| systems, but not on Unicos 5.0 (terminfo) systems.  [...]

This sounds like you have the kernel window size structure set somewhere
(i.e., stty rows 80), which would override the termcap information.  You
can check this with an "stty all".  If this is the case, you can turn it
off with "stty cols 0", which would make the termcap size dominate, or
"stty cols 132".  See the end of the tty(4) man page for the winsize info.

This can happen on systems where rlogind or telnetd fail to clear the
winsize structure on a new login, AND an old process retains access to
the tty, preventing cleanup on last close.

In contrast, I'm not aware of any terminfo implementations that support the
notion of a window size in the kernel.
--
"Eggheads unite!  You have nothing to lose but your yolks!"  -Adlai Stevenson

meissner@osf.org (Michael Meissner) (02/14/90)

In article <101732@pyramid.pyramid.com> romain@pyramid.pyramid.com
(Romain Kang) writes:

| In contrast, I'm not aware of any terminfo implementations that support the
| notion of a window size in the kernel.

Systems that support both BSD and System V semantics would support
terminfo and the BSD window size ioctl's.  DG/UX from Data General is
one such system.  Suns are another (assuming you have /usr/5bin and
/usr/5lib installed).
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA

Catproof is an oxymoron, Childproof is nearly so