delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/26/17:24:43

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 26 Oct 2001 17:25:20 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: setup.exe command line options
Message-ID: <20011026172520.D2067@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <005001c15e52$d4402f70$2c4e3c3e AT Obsession> <20011026151819 DOT A1599 AT redhat DOT com> <000901c15e57$56a898e0$6c423c3e AT Obsession> <20011026160111 DOT B1882 AT redhat DOT com> <20011026231503 DOT H7622 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20011026231503.H7622@cygbert.vinschen.de>
User-Agent: Mutt/1.3.21i

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019