Eric Pouech eric.pouech@orange.fr writes:
among the potential fixes: S1: no longer do the console attribute management in server, but only in kernel32, and only for the livespan of the process creating the bare console. this means that the console will not be accessible to the children of this process after its death (but I don't see how to do it anyway) S2: when the process that created the bare console, it's about to terminate it should wait for all its children to die. This would require a cloak of invisibility (from the win32 space) to let the other win32-process see that it actually died. S3: combine S1 and S2
I think S1 is the way to go. I also think we should not put the console in raw mode until the app actually calls ReadConsole or similar function. The vast majority of apps never need fancy console input.