diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-08 21:04:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-08 21:04:59 +0000 |
commit | affc3c95c3d1245b7f94e9b911291c50ed5c5363 (patch) | |
tree | 0760a05ce2d02325dd542acbe7b62a67b64bd715 | |
parent | 0ba3bab9972cf4a6ccbe6fa4ed9d282f7c47ce3e (diff) | |
download | rtmux-affc3c95c3d1245b7f94e9b911291c50ed5c5363.tar.gz rtmux-affc3c95c3d1245b7f94e9b911291c50ed5c5363.tar.bz2 rtmux-affc3c95c3d1245b7f94e9b911291c50ed5c5363.zip |
Get defaults the right way round.
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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> @@ -648,7 +648,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char fg, u_char bg) } else { if (fg > 7) fg = 8; - if (fg == 8 && tty->term->flags & TERM_HASDEFAULTS) + if (fg == 8 && !(tty->term->flags & TERM_HASDEFAULTS)) fg = 7; if (fg == 8) tty_puts(tty, "\033[39m"); @@ -664,7 +664,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char fg, u_char bg) } else { if (bg > 7) bg = 8; - if (bg == 8 && tty->term->flags & TERM_HASDEFAULTS) + if (bg == 8 && !(tty->term->flags & TERM_HASDEFAULTS)) bg = 0; if (bg == 8) tty_puts(tty, "\033[49m"); |