'tput cols' give strange results
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncurses (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
-------
dpkg -l ncurses-bin | cat
Desired=
| Status=
|/ Err?=(none)
||/ Nom Version Description
+++-===
ii ncurses-bin 5.6+20070716-
-------
root@ganymede:~# ps -ef | grep [g]nome-term
root 6132 1 0 09:48 ? 00:00:07 gnome-terminal --geometry=110x36
root@ganymede:~# echo $COLUMNS
110
root@ganymede:~# tput cols
110
root@ganymede:~# COLS=$(tput cols)
root@ganymede:~# echo $COLS
110
root@ganymede:~# COLS=$(tput cols 2>/dev/null)
root@ganymede:~# echo $COLS
80
root@ganymede:~# tput cols 2>/dev/null
110
-------
Changed in ncurses (Ubuntu): | |
status: | Confirmed → Invalid |
Thanks for your report.
Confirmed in Intrepid. Same result with lines which returns 24 instead of 36.
$ apt-cache policy ncurses-bin 1ubuntu2
ncurses-bin:
Installed: 5.6+20071124-