diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-08-15 13:54:47 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-08-15 13:54:47 +0100 |
commit | 9c34aad21c0837123a51a5a4233a016805d3e526 (patch) | |
tree | 4c31065069418a60bb125e2d33e77c8993855d96 /tty.c | |
parent | 9b08e5139baf7cd61d096c128b6a794f6a634102 (diff) | |
parent | 7c2dcd72380dc2d9e119e99cb423a67ae17b6bd2 (diff) | |
download | rtmux-9c34aad21c0837123a51a5a4233a016805d3e526.tar.gz rtmux-9c34aad21c0837123a51a5a4233a016805d3e526.tar.bz2 rtmux-9c34aad21c0837123a51a5a4233a016805d3e526.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2690,12 +2690,14 @@ tty_check_fg(struct tty *tty, struct colour_palette *palette, /* * Perform substitution if this pane has a palette. If the bright - * attribute is set, use the bright entry in the palette by changing to - * the aixterm colour. + * attribute is set and Nobr is not present, use the bright entry in + * the palette by changing to the aixterm colour */ if (~gc->flags & GRID_FLAG_NOPALETTE) { c = gc->fg; - if (c < 8 && gc->attr & GRID_ATTR_BRIGHT) + if (c < 8 && + gc->attr & GRID_ATTR_BRIGHT && + !tty_term_has(tty->term, TTYC_NOBR)) c += 90; if ((c = colour_palette_get(palette, c)) != -1) gc->fg = c; |