[python-win32] Console width in characters

2006-12-02 Thread Tony Cappellini
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

[python-win32] Console width in characters

2006-12-02 Thread Roger Upole
Tony Cappellini wrote: 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