aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tty-term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index 3007dc01..ec8302a6 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -584,6 +584,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);