Add 'addbytes.c', plus some cleanup by K. Bostic in Makefile.
[unix-history] / usr / src / lib / libcurses / standout.c
CommitLineData
87c6fcf8
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)standout.c 5.1 (Berkeley) %G%";
9#endif not lint
10
797d94f9
KA
11/*
12 * routines dealing with entering and exiting standout mode
13 *
797d94f9
KA
14 */
15
16# include "curses.ext"
17
18/*
19 * enter standout mode
20 */
21char *
22wstandout(win)
23reg WINDOW *win;
24{
25 if (!SO && !UC)
26 return FALSE;
27
28 win->_flags |= _STANDOUT;
29 return (SO ? SO : UC);
30}
31
32/*
33 * exit standout mode
34 */
35char *
36wstandend(win)
37reg WINDOW *win;
38{
39 if (!SO && !UC)
40 return FALSE;
41
42 win->_flags &= ~_STANDOUT;
43 return (SE ? SE : UC);
44}