[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to find out if emacs is running inside GUI or terminal
From: |
Stefan Monnier |
Subject: |
Re: How to find out if emacs is running inside GUI or terminal |
Date: |
Fri, 22 Nov 2013 18:26:56 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Is there a way to find out within emacs if it is running in a GUI or inside
> a terminal (i.e. -nw switch specified on the cli) using Elisp?
Note that a single Emacs can run both with GUI frames and with terminal
frames at the same time. E.g. you can start "emacs -nw" and then from
there you can M-x make-frame-on-display RET to open GUI frames.
Or you can run Emacs in "GUI mode", then do M-x server-mode RET, and
then use "emacsclient -t" from a terminal to open a terminal frame.
Stefan
Re: How to find out if emacs is running inside GUI or terminal,
Stefan Monnier <=