all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: min-colors 88
Date: Thu, 27 Jan 2022 13:27:38 +0100	[thread overview]
Message-ID: <878rv1gy85.fsf@zoho.eu> (raw)
In-Reply-To: 83tudpe6u6.fsf@gnu.org

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




  reply	other threads:[~2022-01-27 12:27 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27  6:14 min-colors 88 fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  6:33 ` Yuri Khan
2022-01-27 11:48   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 12:10   ` Emanuel Berg via Users list for the GNU Emacs text editor
     [not found] ` <CAP_d_8U3E=FAQJ7XiNMnCi-Y4Gneo69KmEKVTuWWHOA7EVz7Gg@mail.gmail.com-MuPEX1J--7-2>
2022-01-27  6:39   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  6:46 ` Eli Zaretskii
2022-01-27  8:43   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27  9:56     ` Eli Zaretskii
2022-01-27 10:44       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 10:54         ` Bastian Beranek
2022-01-27 11:01         ` Eli Zaretskii
2022-01-27 11:43           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 11:49             ` Eli Zaretskii
2022-01-27 12:27               ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2022-01-27 12:59             ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 11:47           ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 11:50             ` Eli Zaretskii
2022-01-27 13:00               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 13:03               ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 13:33                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 15:14                 ` Eli Zaretskii
2022-01-27 18:09                   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 18:30                     ` Eli Zaretskii
2022-01-27 18:43                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 18:46                       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-27 19:46                         ` Eli Zaretskii
2022-01-27 18:47                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-28  7:58                         ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28  8:07                           ` Eli Zaretskii
2022-01-28  8:59                             ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 11:36                               ` Eli Zaretskii
2022-01-28 11:54                                 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 12:16                                   ` Eli Zaretskii
2022-01-28 12:55                                     ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 13:19                                       ` Eli Zaretskii
     [not found]                                     ` <MuVkMCN--3-2@tutanota.com-MuVxLzA----2>
2022-01-28 13:55                                       ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 21:27                                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-28 12:53                                 ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 13:17                                   ` Eli Zaretskii
2022-01-28 13:49                                     ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 14:34                                       ` Eli Zaretskii
2022-01-28 15:12                                         ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-28 16:56                                           ` Eli Zaretskii
2022-01-28 21:21                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 18:42                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 11:59           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27 11:50   ` Emanuel Berg via Users list for the GNU Emacs text editor

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rv1gy85.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.