diff options
| author | Rami Ylimäki | 2017-02-18 13:04:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-02-18 13:04:55 +0200 |
| commit | e463e5762bbe628be3d15da066a90f079a8468b3 (patch) | |
| tree | 2aa517f3626acbe0dbc73dc7ad5a8ec7d81656c9 /src/tparam.h | |
| parent | 464a51ed46990554bed8a9443168c976d6c3c6d3 (diff) | |
| download | emacs-e463e5762bbe628be3d15da066a90f079a8468b3.tar.gz emacs-e463e5762bbe628be3d15da066a90f079a8468b3.zip | |
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.
Diffstat (limited to 'src/tparam.h')
| -rw-r--r-- | src/tparam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tparam.h b/src/tparam.h index 15664d68bdb..02136b6ca58 100644 --- a/src/tparam.h +++ b/src/tparam.h | |||
| @@ -36,4 +36,8 @@ extern char PC; | |||
| 36 | extern char *BC; | 36 | extern char *BC; |
| 37 | extern char *UP; | 37 | extern char *UP; |
| 38 | 38 | ||
| 39 | #ifdef TERMINFO | ||
| 40 | char *tigetstr(const char *); | ||
| 41 | #endif | ||
| 42 | |||
| 39 | #endif /* EMACS_TPARAM_H */ | 43 | #endif /* EMACS_TPARAM_H */ |