From d603dbdef007c879dfb812d569289119e61b4d3f Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 13 Oct 2020 07:29:24 +0000 Subject: Set RGB flag if capabilities are present, GitHub issue 2418. --- tty-term.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index 9161ad01..b4feea60 100644 --- a/tty-term.c +++ b/tty-term.c @@ -578,6 +578,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); -- cgit v1.2.3