This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xterm is a console program?


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


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