How to get terminal width?
Paul Jackson
pj at sgi.com
Fri May 5 18:17:27 EDT 2000
|> atlas13:pts/7:~% echo $COLUMNS
|> 84
|> atlas13:pts/7:~% python
|> ...
|> >>> os.environ['COLUMNS']
|> KeyError: COLUMNS
You don't have COLUMNS exported.
In Bourne/Korn shell syntax
export COLUMNS
python
In csh syntax
setenv COLUMNS $COLUMNS
python
--
=======================================================================
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