From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: alephnull@airtelbroadband.in (Alok G. Singh) Newsgroups: gmane.emacs.help Subject: Re: How to tell emacs is running under term or windows? Date: Sat, 07 Oct 2006 09:18:46 +0530 Organization: Home Message-ID: <878xjsbxb5.fsf@klein.localdomain> References: <87d594n94v.fsf@gmail.com> Reply-To: alephnull@hcoop.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160192970 8675 80.91.229.2 (7 Oct 2006 03:49:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Oct 2006 03:49:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 05:49:28 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 1GW3Bn-000144-2N for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 05:49:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GW3Bm-00024I-Mb for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Oct 2006 23:49:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GW3BY-0001zP-U1 for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 23:49:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GW3BV-0001zD-9o for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 23:49:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GW3BV-0001zA-3B for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 23:49:09 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GW3IW-0006LA-75 for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 23:56:24 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GW3BK-0000zg-HC for help-gnu-emacs@gnu.org; Sat, 07 Oct 2006 05:48:58 +0200 Original-Received: from 59.144.57.88 ([59.144.57.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Oct 2006 05:48:58 +0200 Original-Received: from alephnull by 59.144.57.88 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Oct 2006 05:48:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 59.144.57.88 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.51 (gnu/linux) Cancel-Lock: sha1:5bpALhC+bBbKFFKeKPEVtG58RfY= 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:37864 Archived-At: 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.