Re: 6 hexadecimal digit colours in limited-colour terminals

Heime <[email protected]> Wed, 15 Jul 2026 11:51:15 +0000
Newsgroups gmane.emacs.help
Message-ID <mkjVWIQp7Gvs7fd_dHONTGAhDo-HBSGXjmsM0MZgU8xTrTLGPJ99JnHLhip4-1Lzb_BysiEFJglgiRG4SVG5hYgjO_4MELHdNx-Ndxnqzsc=@protonmail.com>
On Wednesday, July 15th, 2026 at 11:45 PM, Eli Zaretskii <[email protected]> wro=
te:

> > Date: Tue, 14 Jul 2026 23:22:27 +0000
> > From: Heime <[email protected]>
> >
> > I have seen that true colour palette uses the 6 digit hexadecimal code
> > #RRGGBB for colour specification.  Thusly the 6 digit code is incompati=
ble
> > for 8, 16, and 88 colour terminals.
>=20
> Why incompatible?
>=20
> > How is it then that colour specification for 16-colour
> > terminals still use hex values?  Aren't they supposed to use
> > colour names instead?
>=20
> Emacs is capable of converting the names into hex values and vice
> versa.  So you can use either one.
=20
Thusly, Emacs will accept true colour codes, but convert to nearest
colour specified by 16 colour terminal?