ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: detect terminal width
by Bruce Edge other posts by this author
May 2 2001 8:43AM messages near this date
Re: detect terminal width | Re: PEP 234: Iterators
[snip]

>  env vars, then tigetstr("lines"), etc). def getheightwidth():
>      height, width = struct.unpack(
>          "hhhh", ioctl(0, TERMIOS.TIOCGWINSZ ,"\000"*8))[0:2]
>      return height, width

Thanks, I have one more question, where is TERMIOS.TIOCGWINSZ defined in
2.1?

-Bruce.
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Bruce Edge
Michael Hudson
Bruce Edge

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved