add rand, nargs
[unix-history] / usr / src / lib / libcurses / standout.c
CommitLineData
87c6fcf8 1/*
2f14f200
KB
2 * Copyright (c) 1981 Regents of the University of California.
3 * All rights reserved.
4 *
7e3eac84 5 * %sccs.include.redist.c%
87c6fcf8
DF
6 */
7
8#ifndef lint
7e3eac84 9static char sccsid[] = "@(#)standout.c 5.4 (Berkeley) %G%";
2f14f200 10#endif /* not lint */
87c6fcf8 11
797d94f9
KA
12/*
13 * routines dealing with entering and exiting standout mode
14 *
797d94f9
KA
15 */
16
17# include "curses.ext"
18
19/*
20 * enter standout mode
21 */
22char *
23wstandout(win)
24reg 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 */
36char *
37wstandend(win)
38reg WINDOW *win;
39{
40 if (!SO && !UC)
41 return FALSE;
42
43 win->_flags &= ~_STANDOUT;
44 return (SE ? SE : UC);
45}