xref: /original-bsd/lib/libcurses/standout.c (revision deff14a8)
1 /*
2  * Copyright (c) 1981, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)standout.c	8.3 (Berkeley) 08/10/94";
10 #endif /* not lint */
11 
12 #include "curses.h"
13 
14 /*
15  * wstandout
16  *	Enter standout mode.
17  */
18 int
19 wstandout(win)
20 	WINDOW *win;
21 {
22 	/*
23 	 * If standout/standend strings, or can underline, set the
24 	 * screen standout bit.
25 	 */
26 	if (SO != NULL && SE != NULL || UC != NULL)
27 		win->flags |= __WSTANDOUT;
28 	return (1);
29 }
30 
31 /*
32  * wstandend --
33  *	Exit standout mode.
34  */
35 int
36 wstandend(win)
37 	WINDOW *win;
38 {
39 	win->flags &= ~__WSTANDOUT;
40 	return (1);
41 }
42