aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2016-01-29 11:13:56 +0000
committernicm <nicm>2016-01-29 11:13:56 +0000
commit427b8204268af5548d09b830e101c59daa095df9 (patch)
tree644b41d9f4ffa6c7f70be0b64de37d7c2170876f /tty-term.c
parentb5b5221c13ded5b141fa35f60c707c9c403b83a6 (diff)
downloadrtmux-427b8204268af5548d09b830e101c59daa095df9.tar.gz
rtmux-427b8204268af5548d09b830e101c59daa095df9.tar.bz2
rtmux-427b8204268af5548d09b830e101c59daa095df9.zip
Support for RGB colour, using the extended cell mechanism to avoid
wasting unnecessary space. The 'Tc' flag must be set in the external TERM entry (using terminal-overrides or a custom terminfo entry), if not tmux will map to the closest of the 256 or 16 colour palettes. Mostly from Suraj N Kurapati, based on a diff originally by someone else.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index 8716a1a9..05ef01e7 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -251,6 +251,7 @@ const struct tty_term_code_entry tty_term_codes[] = {
[TTYC_SMSO] = { TTYCODE_STRING, "smso" },
[TTYC_SMUL] = { TTYCODE_STRING, "smul" },
[TTYC_SS] = { TTYCODE_STRING, "Ss" },
+ [TTYC_TC] = { TTYCODE_FLAG, "Tc" },
[TTYC_TSL] = { TTYCODE_STRING, "tsl" },
[TTYC_VPA] = { TTYCODE_STRING, "vpa" },
[TTYC_XENL] = { TTYCODE_FLAG, "xenl" },