From mint-bounce@lists.fishpool.fi Wed Aug 27 17:03:11 2008 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0BALdctUhR9CZD/2dsb2JhbAAIuj+BaA From: "J. F. Lemaire" To: mint@lists.fishpool.fi Subject: Re: [MiNT] Run from desktop or shell? Date: Wed, 27 Aug 2008 23:00:04 +0200 User-Agent: KMail/1.9.9 References: <200808231328.38603.jflemaire@skynet.be> <200808272152.53092.jflemaire@skynet.be> <20080827221717.64206c7jhazf9zd9@webmail1.utbm.fr> In-Reply-To: <20080827221717.64206c7jhazf9zd9@webmail1.utbm.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200808272300.04933.jflemaire@skynet.be> X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: jflemaire@skynet.be Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Hello Olivier, On Wednesday 27 August 2008, Olivier.Landemarre@utbm.fr wrote: > > 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 That was a good idea Olivier, but unfortunetely I always get TERM=tw52 either way. And the system env variable is also tw52. Can you point me to some documentation about that? Cheers, JFL -- Jean-François Lemaire