mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Need a fallback for -2 for aixterm colours.
This commit is contained in:
parent
32a81e197b
commit
a609e6361a
12
tty.c
12
tty.c
@ -2388,7 +2388,11 @@ tty_colours_fg(struct tty *tty, const struct grid_cell *gc)
|
||||
|
||||
/* Is this an aixterm bright colour? */
|
||||
if (gc->fg >= 90 && gc->fg <= 97) {
|
||||
tty_putcode1(tty, TTYC_SETAF, gc->fg - 90 + 8);
|
||||
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,7 +2420,11 @@ tty_colours_bg(struct tty *tty, const struct grid_cell *gc)
|
||||
|
||||
/* Is this an aixterm bright colour? */
|
||||
if (gc->bg >= 90 && gc->bg <= 97) {
|
||||
tty_putcode1(tty, TTYC_SETAB, gc->bg - 90 + 8);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user