delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/13/16:29:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4B255CDF.7020209@gmail.com>
References: <26769438 DOT post AT talk DOT nabble DOT com> <416096c60912131258l33ea2650p608d3ff08e47558f AT mail DOT gmail DOT com> <4B255CDF DOT 7020209 AT gmail DOT com>
Date: Sun, 13 Dec 2009 21:29:33 +0000
Message-ID: <416096c60912131329k4010eca4k9039d428e632fbf6@mail.gmail.com>
Subject: Re: Looking for the 'stdout' of a Windows application
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

2009/12/13 Dave Korn:
>> I'm currently working on a little utility for this sort of situation.
>> It's called 'conin'
>
> =C2=A0Conin The Barbarian?

Yeah, I guess with all the goodness of Cygwin available, using native
console programs is rather a savage thing to do. ;)


> Heh. =C2=A0This looks pretty interesting. =C2=A0It would be neat
> if there was a low-cost way of detecting native windows executables that =
need
> this and making it happen automatically, possibly in the Cygwin DLL.

Hmm, if it can be shown to work to a sufficient degree.


> =C2=A0BTW you probably want to remove that left-over-from-testing-looking=
 spawnl()
> call just at the top of main(), don't you?

Actually that's an important line, but it does badly need a comment.
The program is compiled with -mwindows, and that spawn call is a hack
to get Cygwin to allocate a hidden console.

Speaking of which, any chance of making the hidden console stuff
available through an official interface, e.g.
cyg_alloc_hidden_console()?

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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