Get terminal size in perl and python

Egbert Bouwman egbert at bork.demon.nl
Thu Mar 8 13:40:29 EST 2001


My perl correspondent uses:
    use Term::ReadKey;
    ($cols,$lines)=GetTerminalSize()
What is the python equivalent ?
If I don't come up with one, python looses ten points.
egbert
-- 
Egbert Bouwman - Keizersgracht 197 II - 1016 DS  Amsterdam - 020 6257991
========================================================================




More information about the Python-list mailing list