Console/Shell Programs Detecting GUI

Kevin nnoydb at excite.com
Wed Mar 3 13:50:28 EST 2004





-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
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.)



 --- On Wed 03/03, Pierre Sahores < psahores at easynet.fr > wrote:
From: Pierre Sahores [mailto: psahores at easynet.fr]
To: nnoydb at excite.com, use-revolution at lists.runrev.com
Date: Wed, 3 Mar 2004 19:05:25 +0100
Subject: Re: Console/Shell Programs Detecting GUI

<br>Le 3 mars 04, à 09:39, Kevin a écrit :<br><br>Hi Kevin,<br><br>><br>> How do I go about writing a "standalone" console application with a <br>> gui switch (since at this time I cannot figure out how to check if GUI <br>> is present)?  I have found several referencs on processing command <br>> line parameters but nothing yet on running "headless".<br><br>Just add the line below to your "on preOpenStack" :<br><br>>   if the num of lines in the windows is "1"<br>>   then -- you are in console mode<br>>   else -- you are in graphical mode<br><br>Works well there under both Linux and OSX in stack mode (standalone <br>never tested).<br><br>-- <br>Bien cordialement, Pierre Sahores<br><br>100, rue de Paris<br>F - 77140 Nemours<br><br>psahores at easynet.fr<br><br>GSM:   +33 6 03 95 77 70<br>Pro:      +33 1 41 60 52 68<br>Dom:    +33 1 64 45 05 33<br>Fax:      +33 1 64 45 05 33<br><br>Inspection académique de Seine-Saint-Denis<br>Applications et SGBD ACID SQL (WEB et PGI)<br>Penser et produire "delta de productivité"<br><br>

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


More information about the use-livecode mailing list