On Fri, Jan 20, 2012 at 10:13:16PM -0000, James Brierley wrote:
> It does indeed say 'cols#132', so it is then not an ncurses problem
> (I'll trust you on this since you wrote it!) It points to the entry in
> /usr/share/terminfo, there was no ~/.terminfo.
> 
> I'm not sure where the problem lies in that case.

Thinking about it a little more, tput would get its notion of the
screensize from the stty-related settings first, and also could
be seeing a bogus environment variable:

       If the environment variables LINES and COLUMNS are set, or if the  pro-
       gram  is executing in a window environment, line and column information
       in the environment will override information read  by  terminfo.   This
       would affect a program running in an AT&T 630 layer, for example, where
       the size of a screen is changeable (see ENVIRONMENT).

A hardware vt100 wouldn't do the stuff that an operating system uses to
determine screensize, so "stty -a" (I think) would either show zeros or
would show some default value (probably just zeros).

If those look okay, then there's always running "strace" to see what
inputs tput might be getting.

-- 
Thomas E. Dickey <[email protected]>
http://invisible-island.net
ftp://invisible-island.net

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/919338

Title:
  vt100-w no longer displays in 132 columns on DEC VT420 terminal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/919338/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to