1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-25 15:28:49 +00:00

Map bright black (colour 8) to white (7) if the background is black on

terminals with only eight colours so the text is not invisible. From
Dmytro Bagrii in GitHub issue 4322.
This commit is contained in:
nicm 2025-01-12 14:20:49 +00:00
parent 2a5eba7899
commit 37ad1e2f6d

2
tty.c
View File

@ -2758,6 +2758,8 @@ tty_check_fg(struct tty *tty, struct colour_palette *palette,
gc->fg &= 7;
if (colours >= 16)
gc->fg += 90;
else if (gc->fg == 0 && gc->bg == 0)
gc->fg = 7;
}
}
return;