Get terminal size in perl and python
Steve Lamb
grey at despair.rpglink.com
Thu Mar 8 14:14:02 EST 2001
On Thu, 8 Mar 2001 19:40:29 +0100, Egbert Bouwman <egbert at bork.demon.nl>
wrote:
>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.
If I do in under 5 minutes (having never needing it before) does that mean
you lose 10 instead?
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list