delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/03/05:19:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 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: <20090702174425.GC9839@ednor.casa.cgf.cx>
References: <20090626102313 DOT GA12963 AT calimero DOT vinschen DOT de> <20090626121215 DOT GJ30864 AT calimero DOT vinschen DOT de> <416096c60906260541t56687113p9c940d4251f68405 AT mail DOT gmail DOT com> <20090626133618 DOT GA14187 AT calimero DOT vinschen DOT de> <af075b00906260708h674121f3s63fdc79af5675a44 AT mail DOT gmail DOT com> <20090626145213 DOT GK30864 AT calimero DOT vinschen DOT de> <416096c60906270139y33e2888cq148430eebb744b71 AT mail DOT gmail DOT com> <20090628103010 DOT GT30864 AT calimero DOT vinschen DOT de> <af075b00907020941i666bed61vc450315c662b757a AT mail DOT gmail DOT com> <20090702174425 DOT GC9839 AT ednor DOT casa DOT cgf DOT cx>
From: Julio Costa <costaju AT gmail DOT com>
Date: Fri, 3 Jul 2009 10:18:45 +0100
Message-ID: <af075b00907030218p54b606ds813e824422de04fa@mail.gmail.com>
Subject: Re: popup consoles on Windows 7
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

On Thu, Jul 2, 2009 at 18:44, Christopher Faylor wrote:
> On Thu, Jul 02, 2009 at 05:41:18PM +0100, Julio Costa wrote:
>>HKCU\Console\<argv[0]>\WindowPosition =3D 0x80008000, =C2=A0where <argv[0=
]>
>>is the name of current command being launched
>>
>>Yes, I know, more klumsy workaround... I'm not happy with that also,
>>but at least avoids the console *window* flashing.
>>Alas, the ShowWindow stuff it's still needed for the taskbar icon :(
>
> You haven't programmed many multi-threaded, multi-process aware
> applications if you think that setting a registry key is going to work
> right.
>

No, I haven't - Damn, I've been discovered! :)
But now that you've mentioned it, I see your point.
I was just reporting a result from an observational experiment.
I even didn't done that with real code.
But the usefulness of this registry hack was limited, as I referred.

Oh well, back to the workbench :)

>>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?
>>I'm really trying to think 'out of the box', because it could be the
>>case that there is another implementation path that doesn't really
>>need consoles at all...
>
> Yeah, what were we thinking? =C2=A0We went out of our way to set up a hid=
den
> console, expending considerable effort to do so when they really weren't
> needed.
>

Did I wrote something like that? Well, YOU did.

> How about if you think within the box and do a google search rather than
> suggesting that we didn't know what we were doing?
>

Nice way to help others to help you.
Even if they are waay below in the "mighty coders scale", I don't
think that's a reason to be rude. Not that it is a novelty, I've been
following this mailing list for almost a year now.

You know, you shouldn't take everything that is asked in this list as
a criticism.
I've probably didn't asked in the best way either, but you should have
a much more flexible "filter" because not everyone on this list is
English native. So, maybe there is a little language barrier that
distorted the meaning I was trying to give the question.

I just asked to clarify was a need (da console) expressed in various
places, either in cygwin, in mintty, and probably many others, but
found no explanation on this need, beside what was already said in
this very thread. That only tell me that "it is needed".

Let me rephrase that in three questions:
"What happens if we launch commands without a console created?"
"What are the type of programs that really need that console?"
"Is it possible to identify them prior to launch them?"

--=20
___________
Julio Costa

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