This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: popup consoles on Windows 7
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 2 Jul 2009 18:02:24 +0100
- Subject: Re: popup consoles on Windows 7
- References: <20090626083640.GF30864@calimero.vinschen.de> <416096c60906260503o52ae73ben1140bbbd2db993bb@mail.gmail.com> <20090626121215.GJ30864@calimero.vinschen.de> <416096c60906260541t56687113p9c940d4251f68405@mail.gmail.com> <20090626133618.GA14187@calimero.vinschen.de> <af075b00906260708h674121f3s63fdc79af5675a44@mail.gmail.com> <20090626145213.GK30864@calimero.vinschen.de> <416096c60906270139y33e2888cq148430eebb744b71@mail.gmail.com> <20090628103010.GT30864@calimero.vinschen.de> <af075b00907020941i666bed61vc450315c662b757a@mail.gmail.com>
2009/7/2 Julio Costa <costaju@gmail.com>:
> HKCU\Console\<argv[0]>\WindowPosition = 0x80008000
Good idea!
> Why on Earth are we having this trouble to have an available console
> all the time? Is it necessary to redirect the in/out streams? Is it
> another thing?
>From earlier in the thread:
> me:
>> 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.
Corinna:
> 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.
So be it, I'd be tempted to say, and point people that do insist on
running native console at /bin/run. But then I haven't been at the
sharp end of a barrage of compatibility complaints.
Actually, couldn't spawn_guts() tell whether it's about to execute a
console program, and only allocate a hidden console in that case?
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