how to know if I'm using xterm or gnome-terminal?

Germán A. Racca german.racca at gmail.com
Tue Feb 23 22:07:53 UTC 2010


On Tue, 2010-02-23 at 17:06 -0500, Jake Peavy wrote: 
> On Tue, Feb 23, 2010 at 3:38 PM, Germán A. Racca
> <german.racca at gmail.com> wrote:
>         I'm running a program called IRAF to work with astronomical
>         images, and
>         it needs to use the graphic capabilities of an xterm, not
>         gnome-terminal. So, I'm trying to make a very simple script to
>         start
>         IRAF, but first I have to know if I'm on an xterm (so it
>         enters directly
>         to IRAF) or a gnome-terminal (in this case the script must
>         open an xterm
>         before). 
> 
> This must be too easy, but I'm going to say it anyway.  Why not always
> start xterm and run IRAF within it?
> 
> -- 
> -jp

Yes, I can always do that, but I want to make the script also ;-)

G.

-- 
Germán A. Racca
National Institute for Space Research (INPE)
São José dos Campos - SP - Brasil
http://sites.google.com/site/gracca
http://gracca.wordpress.com



More information about the users mailing list