[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to tell emacs is running under term or windows?
From: |
Corsair |
Subject: |
Re: How to tell emacs is running under term or windows? |
Date: |
Sat, 07 Oct 2006 12:21:19 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) |
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.