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 window's screen's terminal.



details:   https://anonhg.NetBSD.org/src/rev/114ed857e4c7
branches:  trunk
changeset: 820533:114ed857e4c7
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Jan 10 23:49:20 2017 +0000

description:
Use the window's screen's terminal.

diffstat:

 lib/libcurses/standout.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8fe0fe1ac6b2 -r 114ed857e4c7 lib/libcurses/standout.c
--- a/lib/libcurses/standout.c  Tue Jan 10 23:28:45 2017 +0000
+++ b/lib/libcurses/standout.c  Tue Jan 10 23:49:20 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: standout.c,v 1.18 2017/01/06 13:53:18 roy Exp $        */
+/*     $NetBSD: standout.c,v 1.19 2017/01/10 23:49:20 roy 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.18 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: standout.c,v 1.19 2017/01/10 23:49:20 roy Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -74,13 +74,15 @@
 int
 wstandout(WINDOW *win)
 {
+       const TERMINAL *t = win->screen->term;
 
        /*
         * If standout/standend strings, or can underline, set the
         * screen standout bit.
         */
-       if ((enter_standout_mode != NULL && exit_standout_mode != NULL) ||
-           underline_char != NULL)
+       if ((t_enter_standout_mode(t) != NULL &&
+           t_exit_standout_mode(t) != NULL) ||
+           t_underline_char(t) != NULL)
                win->wattr |= __STANDOUT;
        return 1;
 }



Home | Main Index | Thread Index | Old Index