> I've seen this myself, but couldn't reliably reproduce it. > If I recall, allocating a new console, and then immediately > freeing it seemed to clear the 'in-between' state.
Man, that did the trick! Thanks! I added a win32console.AllocConsole() before the FreeConsole() in the first try-except-clause, and this fixes my problem. However, I do think this look like a hack due to issues in the win32console module, but as long as it works I'm happy. Thanks for all help! Cheers, Stian
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32