4.4BSD snapshot (revision 8.1); add 1993 to copyright
[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
0c5c5188 9static char sccsid[] = "@(#)standout.c 5.6 (Berkeley) %G%";
2f14f200 10#endif /* not lint */
87c6fcf8 11
4569b94e 12#include <curses.h>
797d94f9
KA
13
14/*
4569b94e
KB
15 * wstandout
16 * Enter standout mode.
797d94f9
KA
17 */
18char *
19wstandout(win)
4569b94e 20 register WINDOW *win;
797d94f9
KA
21{
22 if (!SO && !UC)
4569b94e 23 return (0);
797d94f9 24
0c5c5188 25 win->flags |= __WSTANDOUT;
797d94f9
KA
26 return (SO ? SO : UC);
27}
28
29/*
4569b94e
KB
30 * wstandend --
31 * Exit standout mode.
797d94f9
KA
32 */
33char *
34wstandend(win)
4569b94e 35 register WINDOW *win;
797d94f9
KA
36{
37 if (!SO && !UC)
4569b94e 38 return (0);
797d94f9 39
0c5c5188 40 win->flags &= ~__WSTANDOUT;
797d94f9
KA
41 return (SE ? SE : UC);
42}