From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Corsair Newsgroups: gmane.emacs.help Subject: Re: How to tell emacs is running under term or windows? Date: Sat, 07 Oct 2006 12:21:19 +0800 Organization: Bentium Ltd. (CN99) Message-ID: <87y7rs69j4.fsf@gmail.com> References: <87d594n94v.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160196131 14581 80.91.229.2 (7 Oct 2006 04:42:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Oct 2006 04:42:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 06:42:08 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GW40i-0001CZ-VE for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 06:42:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GW40i-0002x5-Dd for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 00:42:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news.cn99.com!news.yaako.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 221.226.2.243 Original-X-Trace: news.yaako.com 1160194868 17367 221.226.2.243 (7 Oct 2006 04:21:08 GMT) Original-X-Complaints-To: usenet@news.yaako.com Original-NNTP-Posting-Date: Sat, 7 Oct 2006 04:21:08 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:2MOt3u4zIsfxw1nYofuiugbFN9A= Original-Xref: shelby.stanford.edu gnu.emacs.help:142248 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37867 Archived-At: alephnull@airtelbroadband.in (Alok G. Singh) writes: > On 7 Oct 2006, chris.corsair@gmail.com wrote: > >> The problem is, how to tell that emacs is running under a term or a >> windows system, or, to be simple, how to tell if the `-nw' option is >> issued when starting emacs? > >>>From the C-h f: > > window-system is a built-in function in `C source code'. > (window-system &optional FRAME) > > The name of the window system that FRAME is displaying through. > The value is a symbol---for instance, 'x' for X windows. > The value is nil if Emacs is using a text-only terminal. > > FRAME defaults to the currently selected frame. > > -- > Alok > > Give a small boy a hammer and he will find that everything he encounters > needs pounding. > Thanks man, it works perfectly. Thanks a lot. -- Fear is the path to the Darkside. Fear leads to anger, Anger leads to hate, Hate leads to suffering.