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 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@redhat.com>
> >To: <cygwin-developers@cygwin.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@cygwin.com
Red Hat, Inc.


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