xref: /original-bsd/lib/libcurses/standout.c (revision bb7c31bc)
1733b99ccSarnold /*
2f8557398Sbostic  * Copyright (c) 1981, 1993, 1994
31dcb39f9Sbostic  *	The Regents of the University of California.  All rights reserved.
40c41a22eSbostic  *
5784468bbSbostic  * %sccs.include.redist.c%
6290c4402Sdist  */
7290c4402Sdist 
8290c4402Sdist #ifndef lint
9*bb7c31bcSbostic static char sccsid[] = "@(#)standout.c	8.3 (Berkeley) 08/10/94";
100c41a22eSbostic #endif /* not lint */
11290c4402Sdist 
12f8557398Sbostic #include "curses.h"
13733b99ccSarnold 
14733b99ccSarnold /*
15b0f68412Sbostic  * wstandout
16b0f68412Sbostic  *	Enter standout mode.
17733b99ccSarnold  */
18*bb7c31bcSbostic int
wstandout(win)19733b99ccSarnold wstandout(win)
20*bb7c31bcSbostic 	WINDOW *win;
21733b99ccSarnold {
22*bb7c31bcSbostic 	/*
23*bb7c31bcSbostic 	 * If standout/standend strings, or can underline, set the
24*bb7c31bcSbostic 	 * screen standout bit.
25*bb7c31bcSbostic 	 */
26*bb7c31bcSbostic 	if (SO != NULL && SE != NULL || UC != NULL)
27bcc2d588Selan 		win->flags |= __WSTANDOUT;
28*bb7c31bcSbostic 	return (1);
29733b99ccSarnold }
30733b99ccSarnold 
31733b99ccSarnold /*
32b0f68412Sbostic  * wstandend --
33b0f68412Sbostic  *	Exit standout mode.
34733b99ccSarnold  */
35*bb7c31bcSbostic int
wstandend(win)36733b99ccSarnold wstandend(win)
37*bb7c31bcSbostic 	WINDOW *win;
38733b99ccSarnold {
39bcc2d588Selan 	win->flags &= ~__WSTANDOUT;
40*bb7c31bcSbostic 	return (1);
41733b99ccSarnold }
42