summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-10-13 10:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-10-13 10:01:19 +0100
commit9ab81e1879837a8b97e67e9856d7c64e9c865077 (patch)
treea4263e8a0708c97e48b83f0a402e3aca3f3e6a9c /tty-term.c
parent30601d11a8db34ecda953621488d2e3fe84ebf6f (diff)
parentd603dbdef007c879dfb812d569289119e61b4d3f (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tty-term.c')
-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);