delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/26/05:39:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090626083640.GF30864@calimero.vinschen.de>
References: <416096c60904051420h66325080j3b059f3fbb857bde AT mail DOT gmail DOT com> <20090415153549 DOT GA8722 AT calimero DOT vinschen DOT de> <416096c60904151350p62741e29if5c46598951d8dd9 AT mail DOT gmail DOT com> <416096c60904151415k6998673dw2ddf867653ae88e8 AT mail DOT gmail DOT com> <20090416092528 DOT GB8722 AT calimero DOT vinschen DOT de> <416096c60904210835jd93a1b8w742bb8ebe0802c9c AT mail DOT gmail DOT com> <20090421160026 DOT GJ8722 AT calimero DOT vinschen DOT de> <20090508090737 DOT GA15230 AT calimero DOT vinschen DOT de> <416096c60905131134l21aa53dqe7c3f99130dddb4e AT mail DOT gmail DOT com> <20090626083640 DOT GF30864 AT calimero DOT vinschen DOT de>
Date: Fri, 26 Jun 2009 10:39:27 +0100
Message-ID: <416096c60906260239r5bdaf60bw6a9febe885726f55@mail.gmail.com>
Subject: Re: popup consoles on Windows 7
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019