summaryrefslogtreecommitdiff
path: root/lib/libcurses
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-04-29 00:43:36 +0000
committermycroft <mycroft@NetBSD.org>2000-04-29 00:43:36 +0000
commitf9f1ee95d2341c92f8cdfd59e37eef3ab20d1db6 (patch)
tree565d3c55190a9aef5838fb59cd4d1317f7260578 /lib/libcurses
parentc7d40b65f920d0a815034318f6fa875f1dca98be (diff)
Use the mask here too.
Diffstat (limited to 'lib/libcurses')
-rw-r--r--lib/libcurses/color.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libcurses/color.c b/lib/libcurses/color.c
index 1d8ce2d6847..388a6640250 100644
--- a/lib/libcurses/color.c
+++ b/lib/libcurses/color.c
@@ -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 @@ start_color(void)
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 */