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

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

Re: properly setting up ~/.emacs.d for daemon usage


From: Eli Zaretskii
Subject: Re: properly setting up ~/.emacs.d for daemon usage
Date: Mon, 12 Dec 2016 21:29:01 +0200

> From: Yuri Khan <address@hidden>
> Date: Mon, 12 Dec 2016 23:46:47 +0700
> Cc: Óscar Fuentes <address@hidden>,
>       "address@hidden" <address@hidden>
> 
> On Mon, Dec 12, 2016 at 9:10 PM, Filipe Silva <address@hidden> wrote:
> 
>     (defun true-color-p ()
>       "Return non-nil on displays that support 256 colors."
>       (or
>         (display-graphic-p)
>         (= (tty-display-color-cells) 16777216)))

Why not just look at the value returned by display-color-cells?  It
supports the various terminal types internally.



reply via email to

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