diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-05-07 17:02:31 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-05-07 17:02:31 +0100 |
commit | b2a2c3a1e90756313b6709905f189934123f85ed (patch) | |
tree | aa7bc8515891c6250f37b2bdb7097e29871e0e30 /tty-term.c | |
parent | 91b220525b0406763dafb6698d2741bec580bc10 (diff) | |
parent | f915a4bf0c035968b07d5660760cf7f6503b016c (diff) | |
download | rtmux-b2a2c3a1e90756313b6709905f189934123f85ed.tar.gz rtmux-b2a2c3a1e90756313b6709905f189934123f85ed.tar.bz2 rtmux-b2a2c3a1e90756313b6709905f189934123f85ed.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty-term.c')
-rw-r--r-- | tty-term.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; /* |