Module Name: src
Committed By: roy
Date: Tue Jan 10 23:49:20 UTC 2017
Modified Files:
src/lib/libcurses: standout.c
Log Message:
Use the window's screen's terminal.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 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/standout.c
diff -u src/lib/libcurses/standout.c:1.18 src/lib/libcurses/standout.c:1.19
--- src/lib/libcurses/standout.c:1.18 Fri Jan 6 13:53:18 2017
+++ src/lib/libcurses/standout.c Tue Jan 10 23:49:20 2017
@@ -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 @@ standend(void)
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;
}