Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses PR/51673: Carsten Kunze: curses: standend() do...



details:   https://anonhg.NetBSD.org/src/rev/78c9641e3656
branches:  trunk
changeset: 819345:78c9641e3656
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 29 17:33:48 2016 +0000

description:
PR/51673: Carsten Kunze: curses: standend() does not turn off A_BOLD;
according the X/Open it needs to turn off all attributes.

diffstat:

 lib/libcurses/curses_standout.3 |  6 +++---
 lib/libcurses/standout.c        |  7 ++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r cf4bcbe31755 -r 78c9641e3656 lib/libcurses/curses_standout.3
--- a/lib/libcurses/curses_standout.3   Tue Nov 29 09:04:18 2016 +0000
+++ b/lib/libcurses/curses_standout.3   Tue Nov 29 17:33:48 2016 +0000
@@ -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 @@
 .Dv stdscr .
 The
 .Fn standend
-function turns off the standout attribute
+function turns off all attributes
 on
 .Dv stdscr .
 .Pp
diff -r cf4bcbe31755 -r 78c9641e3656 lib/libcurses/standout.c
--- a/lib/libcurses/standout.c  Tue Nov 29 09:04:18 2016 +0000
+++ b/lib/libcurses/standout.c  Tue Nov 29 17:33:48 2016 +0000
@@ -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 @@
 int
 wstandend(WINDOW *win)
 {
-       win->wattr &= ~__STANDOUT;
+       // http://pubs.opengroup.org/onlinepubs/7908799/xcurses/wstandend.html
+       win->wattr = __NORMAL;
        return (1);
 }



Home | Main Index | Thread Index | Old Index