How to get terminal width?

Paul Jackson pj at sgi.com
Thu May 4 22:57:30 EDT 2000


"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.

-- 

=======================================================================
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj at sgi.com; pj at usa.net) 3x1373 http://sam.engr.sgi.com/pj



More information about the Python-list mailing list