From mint-bounce@lists.fishpool.fi Wed Aug 27 16:19:34 2008 Message-ID: <20080827221717.64206c7jhazf9zd9@webmail1.utbm.fr> Date: Wed, 27 Aug 2008 22:17:17 +0200 From: "Olivier.Landemarre@utbm.fr" To: mint@lists.fishpool.fi Subject: Re: [MiNT] Run from desktop or shell? References: <200808231328.38603.jflemaire@skynet.be> <200808241914.53912.jflemaire@skynet.be> <200808272152.53092.jflemaire@skynet.be> In-Reply-To: <200808272152.53092.jflemaire@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: Olivier.Landemarre@utbm.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Hello Jean Francois > How can I know if a GEM program was executed from a shell (namely > Toswin2) or from the desktop? I'm outputting debug stuff to stdout > but I'd rather not do it when the app is run from the desktop > because it messes up the whole screen You can know if TosWin2 run your application looking in the TERM env under TosWin2 TERM=tw100 under classical screen output this is probably TERM=st52 Regards Olivier