=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.322 retrieving revision 1.323 diff -c -r1.322 -r1.323 *** src/usr.bin/tmux/tty.c 2019/04/24 20:32:31 1.322 --- src/usr.bin/tmux/tty.c 2019/04/25 19:03:43 1.323 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.322 2019/04/24 20:32:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.323 2019/04/25 19:03:43 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 2388,2394 **** /* Is this an aixterm bright colour? */ if (gc->fg >= 90 && gc->fg <= 97) { ! tty_putcode1(tty, TTYC_SETAF, gc->fg - 90 + 8); goto save_fg; } --- 2388,2398 ---- /* Is this an aixterm bright colour? */ if (gc->fg >= 90 && gc->fg <= 97) { ! if (tty->term_flags & TERM_256COLOURS) { ! xsnprintf(s, sizeof s, "\033[%dm", gc->fg); ! tty_puts(tty, s); ! } else ! tty_putcode1(tty, TTYC_SETAF, gc->fg - 90 + 8); goto save_fg; } *************** *** 2416,2422 **** /* Is this an aixterm bright colour? */ if (gc->bg >= 90 && gc->bg <= 97) { ! tty_putcode1(tty, TTYC_SETAB, gc->bg - 90 + 8); goto save_bg; } --- 2420,2430 ---- /* Is this an aixterm bright colour? */ if (gc->bg >= 90 && gc->bg <= 97) { ! if (tty->term_flags & TERM_256COLOURS) { ! xsnprintf(s, sizeof s, "\033[%dm", gc->bg + 10); ! tty_puts(tty, s); ! } else ! tty_putcode1(tty, TTYC_SETAB, gc->bg - 90 + 8); goto save_bg; }