Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: lew@gsgpyr.gsg.COM (Paul Lew) Newsgroups: comp.windows.x Subject: RE: Determining if in xterm from shell Message-ID: <9102040543.AA04651@gsgpyr.GSG.COM> Date: 4 Feb 91 05:43:11 GMT References: Sender: daemon@athena.mit.edu (Mr Background) Reply-To: Organization: The Internet Lines: 14 > Is there a simple way to determine from the shell whether I am running > an xterm or not? Check if WINDOWID is defined, for example, in csh/tcsh: if ( $?WINDOWID ) then set prompt = ... else set prompt = ... endif Paul Lew (lew@gsg.gsg.com) UUCP: uunet---samsung--+ General Systems Group, 5 Manor Parkway oliveb---+--gsg--lew Salem, NH 03079 (603) 893-1000 decvax---+