How to get terminal width?

David Arnold arnold at dstc.monash.edu.au
Fri May 5 05:09:58 CEST 2000


-->"Paul" == Paul Jackson <pj at sgi.com> 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



d




More information about the Python-list mailing list