unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Terminal only emacs question
Date: Fri, 25 Sep 2020 00:01:06 +0200	[thread overview]
Message-ID: <20200924220106.way5eue2tmykuhgy@Ergus> (raw)
In-Reply-To: 20200924220106.way5eue2tmykuhgy.ref@Ergus


Hi emacs:

Whats the way to determine in the init file if a emacs is running under
a terminal emulator or the linux console?

I need this to condition the load of xterm-mouse-mode or
gpm-mouse-mode. I tried getenv but for some reason inside emacs it is
always "dumb".

Any idea?

Best,
Ergus



       reply	other threads:[~2020-09-24 22:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200924220106.way5eue2tmykuhgy.ref@Ergus>
2020-09-24 22:01 ` Ergus [this message]
2020-09-24 22:10   ` Terminal only emacs question Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:14     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:20       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:39         ` Ergus
2020-09-24 22:53           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-25  1:22   ` Stefan Monnier
2020-09-25  2:32     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-25  3:22     ` Ergus

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20200924220106.way5eue2tmykuhgy@Ergus \
    --to=spacibba@aol.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).