=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty-term.c,v retrieving revision 1.58 retrieving revision 1.59 diff -c -r1.58 -r1.59 *** src/usr.bin/tmux/tty-term.c 2018/02/04 10:10:39 1.58 --- src/usr.bin/tmux/tty-term.c 2018/05/07 13:39:09 1.59 *************** *** 1,4 **** ! /* $OpenBSD: tty-term.c,v 1.58 2018/02/04 10:10:39 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty-term.c,v 1.59 2018/05/07 13:39:09 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 488,495 **** goto error; } ! /* Figure out if we have 256. */ ! if (tty_term_number(term, TTYC_COLORS) == 256) term->flags |= TERM_256COLOURS; /* --- 488,496 ---- goto error; } ! /* 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; /*