xref: /original-bsd/lib/libcurses/standout.c (revision e59fb703)
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.4 (Berkeley) 06/01/90";
10 #endif /* not lint */
11 
12 /*
13  * routines dealing with entering and exiting standout mode
14  *
15  */
16 
17 # include	"curses.ext"
18 
19 /*
20  * enter standout mode
21  */
22 char *
23 wstandout(win)
24 reg WINDOW	*win;
25 {
26 	if (!SO && !UC)
27 		return FALSE;
28 
29 	win->_flags |= _STANDOUT;
30 	return (SO ? SO : UC);
31 }
32 
33 /*
34  * exit standout mode
35  */
36 char *
37 wstandend(win)
38 reg WINDOW	*win;
39 {
40 	if (!SO && !UC)
41 		return FALSE;
42 
43 	win->_flags &= ~_STANDOUT;
44 	return (SE ? SE : UC);
45 }
46