Opened 12 years ago

Closed 12 years ago

#9606 closed bug (fixed)

Termcap: 'tput cols' always shows 80

Reported by: zzzzz Owned by: siarzhuk
Priority: normal Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: Termcap Terminfo ncurses Cc:
Blocked By: Blocking:
Platform: x86

Description

In Terminal 'tput cols' command always shows 80. No matter, if resized manually or by setting from the menu. Seems to me like hardcoded value.
On the other hand the output of 'tput cols' on Linux, say under konsole, after window having been resized is updated to the current value of terminal emulator window width in chars.

Tested on hrev45428 gcc4 x86, ticket filled as suggested on IRC by diver.

Change History (4)

in reply to:  description comment:1 by siarzhuk, 12 years ago

Owner: changed from jackburton to siarzhuk
Status: newassigned

Replying to zzzzz:

In Terminal 'tput cols' command always shows 80. No matter, if resized manually or by setting from the menu. Seems to me like hardcoded value.

It just returns corresponding attribute from the termcap entry of the current $TERM.

comment:2 by siarzhuk, 12 years ago

Component: Applications/TerminalSystem/POSIX
Summary: Terminal: 'tput cols' always shows 80Termcap: 'tput cols' always shows 80

Is not related to the Terminal - ssh Putty session to Haiku reproduces the same behavior.

comment:3 by siarzhuk, 12 years ago

BTW, ncurses' version of tput perceives the terminal size changes seamlessly. So migrating from termcap to terminfo should solve this issue too.

comment:4 by siarzhuk, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in hrev45705.

Note: See TracTickets for help on using tickets.