This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: setup.exe command line options


On Fri, Oct 26, 2001 at 11:15:03PM +0200, Corinna Vinschen wrote:
>On Fri, Oct 26, 2001 at 04:01:11PM -0400, Christopher Faylor wrote:
>> There is no way that I know of to do this with a -mwindows based
>> utility, unfortunately.  It's a real pain.  This was recently discussed
>> on the cygwin-xfree mailing list.
>
>I just found the function to do that.  It's a new function in the
>Windows XP API called AttachConsole(pid) which attaches the calling
>process to the same console as the process `pid' (e.g. the parent)
>already has allocated.
>
>On the downside... there's no way to do that on 9x/NT/2K.

Yes.  We're recreating the cygwin-xfree discussion.

It's time for someone to note that outputing to stdout works just
fine with -mwindows.  You haven't tried it lately but you're pretty
sure that it works.

Someone should then also discover AllocConsole, too.

But please, don't take my word for it that this is impossible.  Just
provide working code and I'll happily and gratefully admit my
fallibility.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]