aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-08-15 13:54:47 +0100
committerThomas Adam <thomas@xteddy.org>2022-08-15 13:54:47 +0100
commit9c34aad21c0837123a51a5a4233a016805d3e526 (patch)
tree4c31065069418a60bb125e2d33e77c8993855d96 /tty.c
parent9b08e5139baf7cd61d096c128b6a794f6a634102 (diff)
parent7c2dcd72380dc2d9e119e99cb423a67ae17b6bd2 (diff)
downloadrtmux-9c34aad21c0837123a51a5a4233a016805d3e526.tar.gz
rtmux-9c34aad21c0837123a51a5a4233a016805d3e526.tar.bz2
rtmux-9c34aad21c0837123a51a5a4233a016805d3e526.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index a7ad536f..1394075d 100644
--- a/tty.c
+++ b/tty.c
@@ -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;