Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!btnet-peer0!btnet-feed5!btnet!carbon.eu.sun.com!new-usenet.uk.sun.com!not-for-mail From: Peter.We...@Germany.Sun.com (Peter Weiss, Sun Microsystems, Germany) Newsgroups: comp.emacs.xemacs,gnu.emacs.help Subject: Re: How to find out if you are running under X or in a tty Date: 08 Apr 2002 12:33:29 +0200 Organization: Sun Microsystems Lines: 20 Message-ID: References: NNTP-Posting-Host: winona.germany.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: new-usenet.uk.sun.com 1018262012 12602 129.157.133.118 (8 Apr 2002 10:33:32 GMT) X-Complaints-To: usenet@new-usenet.uk.sun.com NNTP-Posting-Date: 8 Apr 2002 10:33:32 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 >>>>> On 5 Apr 2002 17:14:17 GMT, ichu...@ak47.algebra.com () said: I use the variable window-system for this purpose: window-system's value is x Documentation: A symbol naming the window-system under which Emacs is running (such as `x'), or nil if emacs is running on an ordinary terminal. works both with emacs and xemacs latest versions. Hth -- Peter -- Consultant der CLASS AG http://www.class.de Technical Services mobil +49 (0) 172/837 91 25 mailto:Peter.We...@class.de