Console/Shell Programs Detecting GUI

Kevin nnoydb at excite.com
Wed Mar 3 13:51:52 EST 2004


nteresting, and a excelent suggestion. My question becomes whe I tested a few of my applications (standalones) on startup they attempted to contact the 'X' subsystem to create the visual representation of the main stack. Is that you experience? Am I doing something incorrectly?


>Just add the line below to your "on preOpenStack" :

>> if the num of lines in the windows is "1"
>> then -- you are in console mode
>> else -- you are in graphical mode

>Works well there under both Linux and OSX in stack mode (standalone
>never tested).



-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:

Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. 
Any resemblance between the above and my own views is non-deterministic.

 The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
 is left as an exercise for the second god coefficient. 
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the use-livecode mailing list