]> git.eshelyaron.com Git - emacs.git/commit
Support 24-bit direct colors on text terminals
authorRami Ylimäki <rami.ylimaki@vincit.fi>
Sat, 18 Feb 2017 11:04:55 +0000 (13:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Feb 2017 11:04:55 +0000 (13:04 +0200)
commite463e5762bbe628be3d15da066a90f079a8468b3
tree2aa517f3626acbe0dbc73dc7ad5a8ec7d81656c9
parent464a51ed46990554bed8a9443168c976d6c3c6d3
Support 24-bit direct colors on text terminals

* src/term.c (init_tty): Use 24-bit terminal colors if corresponding
foreground and background functions are present in terminal type
definition.
* src/tparam.h: Define prototype for tigetstr.

* lisp/term/tty-colors.el (tty-color-define): Convert color palette
index to pixel value on 16.7M color terminals.
(tty-color-24bit): New function to convert color palette index to
pixel value on 16.7M color terminals.
(tty-color-desc): Don't approximate colors on 16.7M color terminals.
* lisp/term/xterm.el (xterm-register-default-colors): Define all named
TTY colors on 16.7M color terminals.

* doc/misc/efaq.texi (Colors on a TTY): Add instructions on how to
enable direct color TTY mode.
* etc/NEWS: Mention direct color TTY mode and point to FAQ.
doc/misc/efaq.texi
etc/NEWS
lisp/term/tty-colors.el
lisp/term/xterm.el
src/term.c
src/tparam.h