How to get terminal width?

David Arnold arnold at dstc.monash.edu.au
Thu May 4 23:09:58 EDT 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