unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Michał Nazarewicz" <mina86@mina86.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Would True Colour to ANSI 8-bit palette conversion be useful
Date: Fri, 14 Jun 2024 08:05:39 -0400	[thread overview]
Message-ID: <CA+pa1O2UKi7fpJj8v2xfPXL2E0hkodOP=duDVSgBPB0P5CQ8jQ@mail.gmail.com> (raw)
In-Reply-To: <86le37ydx0.fsf@gnu.org>

On Fri, 14 Jun 2024 at 07:14, Eli Zaretskii <eliz@gnu.org> wrote:
> Emacs already
> attempts to find the best color of the N colors the terminal actually
> supports that approximates the color specified by a face.  That
> includes the case of only 8 supported colors.  See tty-colors.el.

Yes, that’s the feature I meant. (As mentioned, I’m not using TTY so I
wasn’t aware this existed and didn’t find it with a quick look at the
codebase). I could probably argue my implementation is more
perceptually accurate but on the flip side it only works for the
256-colour palette. So it sounds like there’s nothing to see here. ;)

-- 
Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»



      reply	other threads:[~2024-06-14 12:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-14 10:01 Would True Colour to ANSI 8-bit palette conversion be useful Michał Nazarewicz
2024-06-14 11:14 ` Eli Zaretskii
2024-06-14 12:05   ` Michał Nazarewicz [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

  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='CA+pa1O2UKi7fpJj8v2xfPXL2E0hkodOP=duDVSgBPB0P5CQ8jQ@mail.gmail.com' \
    --to=mina86@mina86.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 public inbox

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

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