aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2020-10-13 07:29:24 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-10-29 13:48:03 +0000
commit977cf3cf697153c827724988db9e715cf4af2a67 (patch)
tree39119caf84e144e4536b9d84c51990fac6220f16
parent07ffed8b6fe39ccd8b0ff675e40643d9f0d86f91 (diff)
downloadrtmux-977cf3cf697153c827724988db9e715cf4af2a67.tar.gz
rtmux-977cf3cf697153c827724988db9e715cf4af2a67.tar.bz2
rtmux-977cf3cf697153c827724988db9e715cf4af2a67.zip
Set RGB flag if capabilities are present, GitHub issue 2418.
-rw-r--r--tty-term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index 9ad88597..f320db89 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -580,6 +580,9 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
(!tty_term_has(term, TTYC_SETRGBF) ||
!tty_term_has(term, TTYC_SETRGBB)))
tty_add_features(feat, "RGB", ",");
+ if (tty_term_has(term, TTYC_SETRGBF) &&
+ tty_term_has(term, TTYC_SETRGBB))
+ term->flags |= TERM_RGBCOLOURS;
/* Apply the features and overrides again. */
tty_apply_features(term, *feat);