=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty-term.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/tmux/tty-term.c 2009/10/12 13:01:18 1.10 --- src/usr.bin/tmux/tty-term.c 2009/10/24 21:18:33 1.11 *************** *** 1,4 **** ! /* $OpenBSD: tty-term.c,v 1.10 2009/10/12 13:01:18 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty-term.c,v 1.11 2009/10/24 21:18:33 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 359,369 **** if (strcmp(tty_term_string(term, TTYC_OP), "\033[39;49m") == 0) term->flags |= TERM_HASDEFAULTS; ! /* ! * Try to figure out if we have 256 or 88 colours. The standard xterm ! * definitions are broken (well, or the way they are parsed is: in any ! * case they end up returning 8). So also do a hack. ! */ if (tty_term_number(term, TTYC_COLORS) == 256) term->flags |= TERM_256COLOURS; if (tty_term_number(term, TTYC_COLORS) == 88) --- 359,365 ---- if (strcmp(tty_term_string(term, TTYC_OP), "\033[39;49m") == 0) term->flags |= TERM_HASDEFAULTS; ! /* Figure out if we have 256 or 88 colours. */ if (tty_term_number(term, TTYC_COLORS) == 256) term->flags |= TERM_256COLOURS; if (tty_term_number(term, TTYC_COLORS) == 88)