X-Recipient: archive-cygwin@delorie.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: <20090626133618.GA14187@calimero.vinschen.de>
References: <416096c60904210835jd93a1b8w742bb8ebe0802c9c@mail.gmail.com> 	 <20090508090737.GA15230@calimero.vinschen.de> 	 <416096c60905131134l21aa53dqe7c3f99130dddb4e@mail.gmail.com> 	 <20090626083640.GF30864@calimero.vinschen.de> 	 <416096c60906260239r5bdaf60bw6a9febe885726f55@mail.gmail.com> 	 <20090626102313.GA12963@calimero.vinschen.de> 	 <416096c60906260503o52ae73ben1140bbbd2db993bb@mail.gmail.com> 	 <20090626121215.GJ30864@calimero.vinschen.de> 	 <416096c60906260541t56687113p9c940d4251f68405@mail.gmail.com> 	 <20090626133618.GA14187@calimero.vinschen.de>
Date: Fri, 26 Jun 2009 20:55:23 +0100
Message-ID: <416096c60906261255r1295b871s97e7d3046c75469f@mail.gmail.com>
Subject: Re: popup consoles on Windows 7
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
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

2009/6/26 Corinna Vinschen:
> > > Yes, I thought of trying AttachConsole first. =C2=A0It's a band-aid s=
ince
> > > it will of course not work if there's just no parent console
> >
> > That can be dealt with, because AttachConsole reports back whether it
> > did manage to attach, so if it doesn't, one can then call AllocConsole
> > and ShowWindowAsync.
>
> Yes, I'm aware how this would work. =C2=A0What I mean is, it's *still* a
> band-aid since in case of a fail to attach, you still have to alloc
> a console and you're back to the original problem. =C2=A0What we could do
> using that technique is to minimize the number of console windows.
> But it doesn't help to avoid them entirely.

Agreed, a proper workaround is still needed.

> You have still cluttered
> your desktop, or rather, your taskbar with console windows.

I don't see that with MinTTY with ShowWindowAsync(GetConsoleWindow(),
SW_HIDE), at least on Windows 7 RC 64-bit. There's a conhost.exe for
each session in Task Manager, but no console icon in the taskbar.

> The problem with the console handles
> in 64 bit Windows is fixed in the latest builds.

Thanks, I better give that a go. Using AttachConsole would at least
get rid of the popups when invoking from an existing Cygwin session.

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

