Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!prls!pyramid!romain From: romain@pyramid.pyramid.com (Romain Kang) Newsgroups: comp.terminals Subject: Re: unwanted wrap using vt100-w Summary: window size in kernel Message-ID: <101732@pyramid.pyramid.com> Date: 12 Feb 90 04:45:06 GMT References: <4857@amelia.nas.nasa.gov> Reply-To: romain@pyramid.pyramid.com (Romain Kang) Distribution: usa Organization: Pyramid Technology Corp., Mountain View, CA Lines: 19 | 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