How to get terminal width?

David Arnold arnold at
Fri May 5 05:09:58 CEST 2000

-->"Paul" == Paul Jackson <pj at> writes:

  Paul> "stty size" isn't defined on my Irix box, but:

  Paul>     tput cols

  Paul> works on each of my Irix, SuSE and TurboLinux boxes, issuing
  Paul> simply the number of columns.

fwiw, tput cols and tput lines work as expected on Solaris 2.7


More information about the Python-list mailing list