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

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

Re: Terminal only emacs question


From: Ergus
Subject: Re: Terminal only emacs question
Date: Fri, 25 Sep 2020 00:39:56 +0200

On Fri, Sep 25, 2020 at 12:20:32AM +0200, Emanuel Berg via Users list for the 
GNU Emacs text editor wrote:
But `window-system' is still preferable, more
elegant, I'd say, so try that first :)

In the docstring to `window-system' it says:

 Use of this variable as a boolean is deprecated.
 Instead, use ‘display-graphic-p’ or any of the
 other ‘display-*-p’ predicates which report frame’s
 specific UI-related capabilities.

Hm... your use case is boolean, right?

So try:

 (display-graphic-p)

:)

That was the first I tried and it is nil in both cases :(

(display-graphic-p) is non nil only when using a gui but in xterm it is
nil.

--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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