X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 26 Jun 2009 12:23:13 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: popup consoles on Windows 7
Message-ID: <20090626102313.GA12963@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20090415153549.GA8722@calimero.vinschen.de> <416096c60904151350p62741e29if5c46598951d8dd9@mail.gmail.com> <416096c60904151415k6998673dw2ddf867653ae88e8@mail.gmail.com> <20090416092528.GB8722@calimero.vinschen.de> <416096c60904210835jd93a1b8w742bb8ebe0802c9c@mail.gmail.com> <20090421160026.GJ8722@calimero.vinschen.de> <20090508090737.GA15230@calimero.vinschen.de> <416096c60905131134l21aa53dqe7c3f99130dddb4e@mail.gmail.com> <20090626083640.GF30864@calimero.vinschen.de> <416096c60906260239r5bdaf60bw6a9febe885726f55@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <416096c60906260239r5bdaf60bw6a9febe885726f55@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jun 26 10:39, Andy Koppe wrote:
> 2009/6/26 Corinna Vinschen
> > The issue will definitely not be fixed in RTM.  Oh well.
> 
> :(
> 
> > We will have
> > to find a W7 workaround for our method of creating a hidden console.  I
> > have asked Microsoft to provide us with a workaround but I have no
> > really big hope that they can or will do it.  Any 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.

The problem is rather that you want to be able to run certain native
applications which refuse to run if no console is allocated.  Or they
pop up a console on their own.

> Otherwise:
> 
>     DWORD version = GetVersion();
>     version = ((version & 0xff) << 8) | ((version >> 8) & 0xff);
>     if (version >= 0x0601 && AllocConsole())
>       ShowWindowAsync(GetConsoleWindow(), SW_HIDE);
> 
> Still looks bad though, with "subliminal" popups, as demonstrated by
> mintty on Windows 7.

And what's really bad is that the console shows up in the taskbar.

I already tried if creating another desktop will help to fix this
problem, but to no avail.  I'm still looking, but it seems to be
a dead end.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

