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)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 12 years ago
Component: | Applications/Terminal → System/POSIX |
---|---|
Summary: | Terminal: 'tput cols' always shows 80 → Termcap: 'tput cols' always shows 80 |
Is not related to the Terminal - ssh Putty session to Haiku reproduces the same behavior.
comment:3 by , 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.
Replying to zzzzz:
It just returns corresponding attribute from the termcap entry of the current $TERM.