delorie.com/archives/browse.cgi | search |
2009/6/26 Corinna Vinschen > The issue will definitely not be fixed in RTM. =C2=A0Oh well. :( > We will have > to find a W7 workaround for our method of creating a hidden console. =C2= =A0I > have asked Microsoft to provide us with a workaround but I have no > really big hope that they can or will do it. =C2=A0Any suggestions? The proper, yet probably completely impractical solution: compile Cygwin programs for the GUI subsystem instead of the console one and attach to the parent process' console, if any, with explicit calls at program startup. POSIX programs don't use the Win32 console API, so there should be no need to always have a console available. Otherwise: DWORD version =3D GetVersion(); version =3D ((version & 0xff) << 8) | ((version >> 8) & 0xff); if (version >=3D 0x0601 && AllocConsole()) ShowWindowAsync(GetConsoleWindow(), SW_HIDE); Still looks bad though, with "subliminal" popups, as demonstrated by mintty on Windows 7. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |