getting terminal display size?

Jean-Paul Calderone exarkun at divmod.com
Sun Feb 25 21:02:01 EST 2007


On 25 Feb 2007 16:53:17 -0800, jeff <jeffrey.aylesworth at gmail.com> wrote:
>I looked around a lot on the internet and couldn't find out how to do
>this, how do I get the sizer (in rows and columns) of the view?
>

Assuming you're talking about something vaguely *NIXy, you want something
like what's being done here:

http://twistedmatrix.com/trac/browser/trunk/twisted/conch/scripts/conch.py#L361

Jean-Paul




More information about the Python-list mailing list