Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Use the mask here too.



details:   https://anonhg.NetBSD.org/src/rev/cb8f32cd9538
branches:  trunk
changeset: 485494:cb8f32cd9538
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Apr 29 00:43:36 2000 +0000

description:
Use the mask here too.

diffstat:

 lib/libcurses/color.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 8b48575126f3 -r cb8f32cd9538 lib/libcurses/color.c
--- a/lib/libcurses/color.c     Sat Apr 29 00:42:26 2000 +0000
+++ b/lib/libcurses/color.c     Sat Apr 29 00:43:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: color.c,v 1.10 2000/04/27 05:03:22 mycroft Exp $       */
+/*     $NetBSD: color.c,v 1.11 2000/04/29 00:43:36 mycroft Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: color.c,v 1.10 2000/04/27 05:03:22 mycroft Exp $");
+__RCSID("$NetBSD: color.c,v 1.11 2000/04/29 00:43:36 mycroft Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -143,9 +143,7 @@
                tputs(OC, 0, __cputchar);
        if (OP != NULL) {
                tputs(OP, 0, __cputchar);
-               /* Have we also switched off attributes? */
-               if (ME != NULL && !strcmp(OP, ME))
-                       curscr->wattr &= ~__TERMATTR;
+               curscr->wattr &= __mask_OP;
        }
 
        /* Type of colour manipulation - ANSI/TEK/HP/other */



Home | Main Index | Thread Index | Old Index