xref: /original-bsd/lib/libcurses/standout.c (revision 730930d2)
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.2 (Berkeley) 05/04/94";
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