[Top][All Lists]

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

Re: Terminal only emacs question

From: Emanuel Berg
Subject: Re: Terminal only emacs question
Date: Fri, 25 Sep 2020 00:10:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Ergus wrote:

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

Well, the Linux console, AKA the Linux VTs (virtual
terminals), is also a terminal emulator, "emulator"
and "virtual" here denotes the same thing, i.e.
that it isn't a physical terminal.

> 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".

OK, you tried `getenv', but with what?

> Any idea?

Check out the variable `window-system'...

underground experts united

reply via email to

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