mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Get defaults the right way round.
This commit is contained in:
parent
0ba3bab997
commit
affc3c95c3
6
tty.c
6
tty.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tty.c,v 1.38 2008-09-08 17:40:51 nicm Exp $ */
|
/* $Id: tty.c,v 1.39 2008-09-08 21:04:59 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -648,7 +648,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char fg, u_char bg)
|
|||||||
} else {
|
} else {
|
||||||
if (fg > 7)
|
if (fg > 7)
|
||||||
fg = 8;
|
fg = 8;
|
||||||
if (fg == 8 && tty->term->flags & TERM_HASDEFAULTS)
|
if (fg == 8 && !(tty->term->flags & TERM_HASDEFAULTS))
|
||||||
fg = 7;
|
fg = 7;
|
||||||
if (fg == 8)
|
if (fg == 8)
|
||||||
tty_puts(tty, "\033[39m");
|
tty_puts(tty, "\033[39m");
|
||||||
@ -664,7 +664,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char fg, u_char bg)
|
|||||||
} else {
|
} else {
|
||||||
if (bg > 7)
|
if (bg > 7)
|
||||||
bg = 8;
|
bg = 8;
|
||||||
if (bg == 8 && tty->term->flags & TERM_HASDEFAULTS)
|
if (bg == 8 && !(tty->term->flags & TERM_HASDEFAULTS))
|
||||||
bg = 0;
|
bg = 0;
|
||||||
if (bg == 8)
|
if (bg == 8)
|
||||||
tty_puts(tty, "\033[49m");
|
tty_puts(tty, "\033[49m");
|
||||||
|
Loading…
Reference in New Issue
Block a user