help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell emacs is running under term or windows?


From: Alok G. Singh
Subject: Re: How to tell emacs is running under term or windows?
Date: Sat, 07 Oct 2006 09:18:46 +0530
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.51 (gnu/linux)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]