How to get terminal width?
Bjorn Pettersen
bjorn at roguewave.com
Thu May 4 23:43:10 EDT 2000
Paul Jackson wrote:
>
> "stty size" isn't defined on my Irix box, but:
>
> tput cols
>
> works on each of my Irix, SuSE and TurboLinux boxes,
> issuing simply the number of columns.
Well, we're getting closer :-)
The above doesn't work on:
SunOS 4.1.4 (not present)
SunOS 5.4 (wrong result)
But does work on:
RedHat 6.0
Solaris 2.6, 2.7 (7), 8
HPUX 10.20, 11
AIX 4.2, 4.3
IRIX64 6.2, 6.5
Dec 3.2
-- bjorn
More information about the Python-list
mailing list