From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: min-colors 88 Date: Thu, 27 Jan 2022 13:27:38 +0100 Message-ID: <878rv1gy85.fsf@zoho.eu> References: <83fsp9fzg6.fsf@gnu.org> <83a6fhfqna.fsf@gnu.org> <83zgnhe93c.fsf@gnu.org> <83tudpe6u6.fsf@gnu.org> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:s9BDxGwgP2SMy0IWNfkfS6Z32aY= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 27 13:29:19 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nD3tu-0001EB-Ts for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 13:29:18 +0100 Original-Received: from localhost ([::1]:58422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nD3tt-0005AY-Tc for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 07:29:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD3sR-0004VB-Rd for help-gnu-emacs@gnu.org; Thu, 27 Jan 2022 07:27:47 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:47070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD3sQ-0001mE-8Y for help-gnu-emacs@gnu.org; Thu, 27 Jan 2022 07:27:47 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nD3sO-0009pD-MY for help-gnu-emacs@gnu.org; Thu, 27 Jan 2022 13:27:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135562 Archived-At: Eli Zaretskii wrote: >>>> 4-bit, 16 colours >>>> 8-bit, 256 colours >>>> 16-bit, 65 000 colours >>> >>> There's no meaningful number of pixels that correspond to >>> 88 colors, AFAIK. The number of colors supported by >>> text-mode terminals doesn't necessarily depend on the >>> pixel depth of the color display. >> >> So one uses whatever bit format (e.g. 24-Bit Format for >> #RRGGBB) needed to store the maximum colours supported? > > Yes. And you can use #RRGGBB (or any variant of it) > regardless of the pixel depth, Emacs will convert as needed. Compare ... Got to the ttys/Linux VTs/the console ... $ tput colors 8 I actually there are 16 colors in the VTs, 8 is just what is reported so it tells you that. See "test-colors", line 56: https://dataswamp.org/~incal/conf/.zsh/colors screenshot: https://dataswamp.org/~incal/figures/shell/test-colors.png It is 8 colors _and_ 8 supposedly bright versions of the corresponding colors, but they can be defined to whatever, and it happens the same way, so there is in practice 16 colors. (Only when the background comes into play it differs, since the 8 bright version cannot, I think, be used as backgrounds.) I have a very old tutorial somewhere on this ... PS. BTW Double-O Seven, in the computer world it is spelled "color". -- underground experts united https://dataswamp.org/~incal