diff options
author | nicm <nicm> | 2020-10-13 07:29:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-10-29 13:48:03 +0000 |
commit | 977cf3cf697153c827724988db9e715cf4af2a67 (patch) | |
tree | 39119caf84e144e4536b9d84c51990fac6220f16 | |
parent | 07ffed8b6fe39ccd8b0ff675e40643d9f0d86f91 (diff) | |
download | rtmux-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |