]> git.eshelyaron.com Git - emacs.git/commit
Add support for 256-color and 24bit ANSI colors in ansi-color
authorMiha Rihtaršič <miha@kamnitnik.top>
Tue, 5 Oct 2021 06:53:36 +0000 (08:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 5 Oct 2021 06:53:36 +0000 (08:53 +0200)
commit0fa2279b90bf5a638d8377032b71135e1374e8fb
treeb37e17ffbdadfc3b157ab33a98849226b0c6fed1
parent21dcb9830a46a6ed2c613e496b91f611ba7f6a27
Add support for 256-color and 24bit ANSI colors in ansi-color

* lisp/ansi-color.el (ansi-color--code-as-hex): New function to
convert from 256-color and 24-bit ANSI codes.
(ansi-color--face-vec-face): Add support for ANSI color codes greater
than 16
(ansi-color--update-face-vec): Add support for ANSI codes 38 and 48
which can specify 256-color and 24bit ANSI colors.

* test/lisp/ansi-color-tests.el (ansi-color-tests--strings): Add tests
for ANSI codes 38 and 34
etc/NEWS
lisp/ansi-color.el
test/lisp/ansi-color-tests.el