Module Name: src
Committed By: christos
Date: Tue Nov 29 17:33:48 UTC 2016
Modified Files:
src/lib/libcurses: curses_standout.3 standout.c
Log Message:
PR/51673: Carsten Kunze: curses: standend() does not turn off A_BOLD;
according the X/Open it needs to turn off all attributes.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/curses_standout.3
cvs rdiff -u -r1.16 -r1.17 src/lib/libcurses/standout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/curses_standout.3
diff -u src/lib/libcurses/curses_standout.3:1.6 src/lib/libcurses/curses_standout.3:1.7
--- src/lib/libcurses/curses_standout.3:1.6 Wed May 2 00:23:09 2012
+++ src/lib/libcurses/curses_standout.3 Tue Nov 29 12:33:48 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: curses_standout.3,v 1.6 2012/05/02 04:23:09 agc Exp $
+.\" $NetBSD: curses_standout.3,v 1.7 2016/11/29 17:33:48 christos Exp $
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
@@ -25,7 +25,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 1, 2012
+.Dd November 29, 2016
.Dt CURSES_STANDOUT 3
.Os
.Sh NAME
@@ -63,7 +63,7 @@ on
.Dv stdscr .
The
.Fn standend
-function turns off the standout attribute
+function turns off all attributes
on
.Dv stdscr .
.Pp
Index: src/lib/libcurses/standout.c
diff -u src/lib/libcurses/standout.c:1.16 src/lib/libcurses/standout.c:1.17
--- src/lib/libcurses/standout.c:1.16 Wed Feb 3 10:34:40 2010
+++ src/lib/libcurses/standout.c Tue Nov 29 12:33:48 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: standout.c,v 1.16 2010/02/03 15:34:40 roy Exp $ */
+/* $NetBSD: standout.c,v 1.17 2016/11/29 17:33:48 christos Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)standout.c 8.3 (Berkeley) 8/10/94";
#else
-__RCSID("$NetBSD: standout.c,v 1.16 2010/02/03 15:34:40 roy Exp $");
+__RCSID("$NetBSD: standout.c,v 1.17 2016/11/29 17:33:48 christos Exp $");
#endif
#endif /* not lint */
@@ -89,6 +89,7 @@ wstandout(WINDOW *win)
int
wstandend(WINDOW *win)
{
- win->wattr &= ~__STANDOUT;
+ // http://pubs.opengroup.org/onlinepubs/7908799/xcurses/wstandend.html
+ win->wattr = __NORMAL;
return (1);
}