[python-win32] Console width in characters

Tony Cappellini cappy2112 at gmail.com
Sun Dec 3 01:29:47 CET 2006


I'm trying to find an API that will give me the width of a cmd console
window, in charaters.

GetSystemMetrics(SM_CXSCREEN) will return it in pixels- but that doesn't
help.

If the user resizes the console, I want to be able to adjust the text output
of a program

I've looked at the WConio package- that may do it, but I'd rather just uses
a straight API (if possible), because WConio isn't maintained.

Is there an API that returns the number of characters of the "printable
area" of a console windows?

I'm using Python 2.3.4, and build 202 of PythonWin

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20061202/d284c12f/attachment.htm 


More information about the Python-win32 mailing list