[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Run from desktop or shell?



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