Reported by Kupoman. Thanks!
If you start blender in debug [-d] mode without [-con] in Windows, console will be hidden. This doesn't make sense.
Attached patch fixes this behavior.
Description
Description
Event Timeline
Comment Actions
Alex, did you manage to move the console code to GHOST already? Or do you think I should first apply this patch...
Comment Actions
I attached new patch.
Console Toggle now is in Ghost. Also it fixes this bug [#26981]
Console becomes visible by destroying System class.
Also fixed Alt bug by dismissing WM_SYSCOMMAND. [#26938]
btw, freopen() doesn't work in Blender due to Python bug
http://bugs.python.org/issue10080
Comment Actions
Added final patch.
It restores focus if Blender is still active and it loses focus to nowhere.
Comment Actions
In GHOST_ISystem.h
virtual int toggleConsole(int action) = 0;
actually should be
virtual int toggleConsole(int action) {return 0;};
Sorry for that.