xref: /original-bsd/lib/libcurses/standout.c (revision ea3a8ee8)
1 /*
2  * Copyright (c) 1981 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)standout.c	5.6 (Berkeley) 09/14/92";
10 #endif /* not lint */
11 
12 #include <curses.h>
13 
14 /*
15  * wstandout
16  *	Enter standout mode.
17  */
18 char *
19 wstandout(win)
20 	register WINDOW *win;
21 {
22 	if (!SO && !UC)
23 		return (0);
24 
25 	win->flags |= __WSTANDOUT;
26 	return (SO ? SO : UC);
27 }
28 
29 /*
30  * wstandend --
31  *	Exit standout mode.
32  */
33 char *
34 wstandend(win)
35 	register WINDOW *win;
36 {
37 	if (!SO && !UC)
38 		return (0);
39 
40 	win->flags &= ~__WSTANDOUT;
41 	return (SE ? SE : UC);
42 }
43