Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2018-05-07 17:02:31 +01:00
2 changed files with 5 additions and 6 deletions

View File

@ -494,8 +494,9 @@ tty_term_find(char *name, int fd, char **cause)
goto error;
}
/* Figure out if we have 256. */
if (tty_term_number(term, TTYC_COLORS) == 256)
/* Figure out if we have 256 colours (or more). */
if (tty_term_number(term, TTYC_COLORS) >= 256 ||
tty_term_has(term, TTYC_RGB))
term->flags |= TERM_256COLOURS;
/*