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

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

Re: A question about non-window terminals


From: Pascal Bourguignon
Subject: Re: A question about non-window terminals
Date: Tue, 07 Mar 2006 06:37:12 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"xinxiang" <xinxiang@indiana.edu> writes:
> I have a question about the lisp language in emacs.
> I want to set the default face color and fontset by myself, but I still
> want to use the default configure while using non-windows terminals.
> Is there any function or env I can use to recognize the terminal type?
> Like to check if the current emacs session is started with "emacs -nw",
> use the default setting, otherwise use custom setting.


The following variables are available:

;; system-type          darwin   gnu/linux  cygwin
;; system-name          "naiad.informatimago.com" "hermes.afaa.asso.fr"
;; system-configuration "i686-pc-linux-gnu" "i686-pc-cygwin"
;; window-system        nil x mac w32 ; nil = terminal
;; emacs-major-version  18 19 20 21 22
;; emacs-minor-version  0 1 2 3 
;; emacs-version        "20.7.2" "21.2.1" "22.0.50.1"

amongst others...


> Does anyone konw the answer?

Yes.


> Thanks very much for your time!

Please, communicate your address, we'll send the bill ;-)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"You question the worthiness of my code? I should kill you where you
stand!"


reply via email to

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