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

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 23:15:03 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: setup.exe command line options
Message-ID: <20011026231503.H7622@cygbert.vinschen.de>
Reply-To: cygdev <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>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20011026160111.B1882@redhat.com>; from cgf@redhat.com on Fri, Oct 26, 2001 at 04:01:11PM -0400

On Fri, Oct 26, 2001 at 04:01:11PM -0400, Christopher Faylor wrote:
> On Fri, Oct 26, 2001 at 08:49:32PM +0100, Keith Starsmeare wrote:
> >
> >----- Original Message -----
> >From: "Christopher Faylor" <cgf AT redhat DOT com>
> >To: <cygwin-developers AT cygwin DOT com>
> >Sent: Friday, October 26, 2001 8:18 PM
> >Subject: Re: setup.exe command line options
> >
> >
> >> I agree with the option names being similar to the dialog boxes but I'd
> >> prefer that you use '--' options.  If you could invent suitable short
> >> '-q' style options that would be good too.
> >
> >OK, that's a good idea - my command lines were getting very long!
> >
> >One other thing would be a --help option, is there a way that I can output
> >to stdout? printf, and fprintf(stdout,..) don't output to the command line.
> >I'm currently using fprintf(stderr, ..), which brings up a handy dialog box,
> >for tracing.
> 
> 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.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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