Germán A. Racca wrote: > How to know if I'm using an xterm or a gnome-terminal from command line? > > The output of "echo $TERM" is "xterm" from both of them. > > How to know? Well, it looks as though gnome-terminal sets $COLORTERM, whereas xterm doesn’t. But xterm doesn’t unset it, either, so if you get a user starting up a gnome-terminal, thinking “Yuck!”¹ and using that gnome-terminal solely to run xterm, then the xterm will inherit the $COLORTERM setting. Xterm has its own $XTERM_ variables, so you could test for those. But gnome-terminal doesn’t unset those, either, so you could get a user starting up am xterm, thinking “Yuck!”¹ and using that xterm solely to run gnome-terminal… And then you’re going to get someone using Konsole. What are you trying to do? James. ¹There’s no accounting for taste… -- E-mail: james@ | I must refute the rumour that one of our team members aprilcottage.co.uk | walks on water. Although it’s true that Barry Cryer runs | on lager... | -- “I’m Sorry, I Haven’t A Clue”, BBC Radio 4 -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines