all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to find out if emacs is running inside GUI or terminal
Date: Fri, 22 Nov 2013 18:26:56 -0500	[thread overview]
Message-ID: <jwvli0gaul2.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CANCBZJsP_z3zW5=TcwMGCVPfjxZ2LRivBdKW_wZLsWPa5d83BQ@mail.gmail.com

> 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




      parent reply	other threads:[~2013-11-22 23:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22 19:16 How to find out if emacs is running inside GUI or terminal Louis-Guillaume Gagnon
2013-11-22 19:30 ` Bob Proulx
2013-11-22 19:41   ` Óscar Fuentes
2013-11-25  2:04     ` Bob Proulx
2013-11-25  2:30       ` Drew Adams
2013-11-25  3:46         ` Eli Zaretskii
     [not found]         ` <<83k3fxb0tu.fsf@gnu.org>
2013-11-25 15:45           ` Drew Adams
2013-11-25  3:45       ` Eli Zaretskii
2013-11-25  5:56         ` Bob Proulx
2013-11-22 23:26 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvli0gaul2.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.