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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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