xterm is a console program?

Christopher Faylor cgf@redhat.com
Wed May 21 01:19:00 GMT 2003


On Tue, May 20, 2003 at 03:11:25PM -0500, Early Ehlinger wrote:
>>The evil hack is to include the code into the X11 library.  This is the
>>last place where I want to see code that detaches the console.  The
>>correct place is in cygwin1.dll, in the startup code.  And this issue
>>should be discussed on the cygwin-devel mailing list.
>
>I originally thought about it going in cygwin1.dll but dismissed that
>before posting.  The reason was that if you put it in cygwin1.dll, then
>any cygwin app would drop its console if launched in this manner,
>including non-X clients like bash.  That would clearly be Wrong so I
>suggested having it in the X11 client library.  I'm still unconvinced
>that the X11 client library is the appropriate place for this, but I
>haven't seen any better alternatives suggested yet.

Why not just create a hideconsole.o file which inserts itself prior to main
via an __attribute__ ((constructor)) and have it do the right thing?  Then
link all X apps with this new object.  You could even submit this as a cygwin
package.

cgf



More information about the Cygwin-xfree mailing list