[EMAIL PROTECTED] wrote: > > Hello jkinraid, > > I would say a quirk of Windows (and an annoying one at that), but > regardless it's a bug in Rebol. Windows is "working as designed" and > it is the responsibility of the much maligned programmer to work round > that. In windows, if the program is to run without a real GUI, it > should not be compiled as a GUI program. I have seen this problem > myself. One answer is to make the guts of Rebol a DLL, then to have a > console mode driver program for non-GUI work and another GUI program > for GUI work, or to build two different programs entirely. > > It is a major pain to write a single program (under Windows) which has > the option to run with or without GUI :-( > > Actually, I'm hoping I'm wrong, I'd love to know how to do it without > compiling two different "exe"s. Well, I just changed one byte in the rebol executable, and it now runs in the rebol console. Works ok, very fast, low level console operations don't work (port: open/binary [scheme: 'console]), functions like ask work, cursors don't work. Of course, if they compiled it as a console program, if you ran it from outside a console (like from Explorer), it will open up it's own console window. They could muck around with opening console filehandles, or other tricks like that, but I think they have better stuff to do. The Windows version of GIMP does the same sort of trickery to work around the console/GUI problems. Julian Kinraid
