From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Micha=C5=82_Nazarewicz?= Newsgroups: gmane.emacs.devel Subject: Re: Would True Colour to ANSI 8-bit palette conversion be useful Date: Fri, 14 Jun 2024 08:05:39 -0400 Message-ID: References: <86le37ydx0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 14 14:06:24 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sI5hI-0005te-Hh for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jun 2024 14:06:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI5gu-0001h9-7o; Fri, 14 Jun 2024 08:06:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sI5gq-0001fw-Tb for emacs-devel@gnu.org; Fri, 14 Jun 2024 08:05:58 -0400 Original-Received: from mail-oa1-f51.google.com ([209.85.160.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sI5gn-00039F-4C; Fri, 14 Jun 2024 08:05:55 -0400 Original-Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-250495bcd4fso34356fac.1; Fri, 14 Jun 2024 05:05:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718366751; x=1718971551; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GIiJB3L3UP2Qgee2u0FCzR9hogh7SQwhRHrr4RxEBlk=; b=dn+kjKOpNsTV6aBYWAvHbBYuwJnqCqIGgxql4jW4H0JT0z+2OY9KD4lL8eszfsWGrv nHjEB58plNZbotXJ/NfP+qKSvGO4kZWpOR9IhNjF9/rj1D/1ay7QyU/G8FnHpajI+gHv vvynAevVlVgPi/V6TUIChe1mztmWbHroHYG+N6XTZ4tvt8litBCvOY5DS8xaXH9ZqQlq ka+CpUiSKwpk8cYDXYbMtzyhqw/r5rXeVaS1SRSxdH3M4ZpA4BWwZJTTYc4T9TqT6fiI KQofCRo9MVcIdo2I7RaSvWA6f7wzbgAEqfI4pCSNAGlNIz6sn47j2YC+LwBjY0SnTJ3a 9qGg== X-Gm-Message-State: AOJu0YwL9xYoiKV+4uabZOVcHVDUXviFLPZxxxK4YqRE27dv4BrTOpFC GC22QW0hTE+lSIMBevauD8zLAnEp+dP3zGSBJveHfC5qljN9zTdtdO7jN+ouy2RexaKt0QaQhsu CCab1ZdUDI2yNL2eLteTsWuOFFVRiDQ== X-Google-Smtp-Source: AGHT+IFKN6riNU7NOP6UAUO8iv8gqRuKuTd0INsJx53y5HbkVoMxX2emBeg6Uv6nBGoUNNf24YtiPoYTuWD0PXMixQk= X-Received: by 2002:a05:6870:7009:b0:254:d163:c3a9 with SMTP id 586e51a60fabf-258425a7a4dmr2742773fac.0.1718366750819; Fri, 14 Jun 2024 05:05:50 -0700 (PDT) In-Reply-To: <86le37ydx0.fsf@gnu.org> Received-SPF: pass client-ip=209.85.160.51; envelope-from=mnazarewicz@gmail.com; helo=mail-oa1-f51.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320066 Archived-At: On Fri, 14 Jun 2024 at 07:14, Eli Zaretskii 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=E2=80=99s the feature I meant. (As mentioned, I=E2=80=99m not usi= ng TTY so I wasn=E2=80=99t aware this existed and didn=E2=80=99t find it with a quick l= ook 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=E2=80=99s nothing to see here. = ;) --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB