mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Set RGB flag if capabilities are present, GitHub issue 2418.
This commit is contained in:
parent
4dc76e084b
commit
d603dbdef0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user