Opened 6 years ago

Closed 6 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:
Has a Patch: no 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)

comment:1 in reply to:  description Changed 6 years ago by siarzhuk

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 Changed 6 years ago by siarzhuk

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 Changed 6 years ago by siarzhuk

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

comment:4 Changed 6 years ago by siarzhuk

Resolution: fixed
Status: assignedclosed

Fixed in hrev45705.

Note: See TracTickets for help on using tickets.