Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!power.Berkeley.EDU!jmn From: jmn@power.berkeley.edu (J. Mark Noworolski) Newsgroups: comp.windows.x Subject: Determining if in xterm from shell Message-ID: Date: 3 Feb 91 22:12:36 GMT Sender: news@pasteur.Berkeley.EDU Lines: 15 Is there a simple way to determine from the shell whether I am running an xterm or not? (Perhaps something better than checking the DISPLAY variable). I know it can be done with a C program, but something a little more elegant would be handy. The reason I want to check this is to decide whether to make my prompt attempt to change the xterm title or not. Thanks in advance, mark -- "There's a really fine line between clever and stupid" Nigel- Lead Guitar (Spinal Tap) jmn@united.berkeley.edu, or jmn@power.berkeley.edu