Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin-developers AT cygwin DOT com Subject: Re: setup.exe command line options Message-ID: <20011026231503.H7622@cygbert.vinschen.de> Reply-To: cygdev 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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" > >To: > >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.