How to get terminal width?

Donn Cave donn at
Thu May 4 18:28:43 CEST 2000

Quoth newsbunny at (Martin P Holland):
| On 3 May 2000 16:46:56 GMT,

| stty size
| just gives the rows and columns here (linux) but may be this is not
| standard.

It looks pretty good to me!  Ultrix 4.2, Digital UNIX 4.0, AIX 4.2,
HP/UX 10.20, FreeBSD 4.0, 2 versions of Linux and BeOS 4.5 pass on
this one, and that's all I can dig up to try, so it looks to me like
the best bet so far.  Easiest to handle in Python, too.

	Donn Cave, University Computing Services, University of Washington
	donn at

More information about the Python-list mailing list