2009/12/13 Dave Korn: >> I'm currently working on a little utility for this sort of situation. >> It's called 'conin' > > Conin The Barbarian?
Yeah, I guess with all the goodness of Cygwin available, using native console programs is rather a savage thing to do. ;) > Heh. This looks pretty interesting. It 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. > BTW 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