| 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 |
| 8 | static char sccsid[] = "@(#)standout.c 5.1 (Berkeley) %G%"; |
| 9 | #endif not lint |
| 10 | |
| 11 | /* |
| 12 | * routines dealing with entering and exiting standout mode |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | # include "curses.ext" |
| 17 | |
| 18 | /* |
| 19 | * enter standout mode |
| 20 | */ |
| 21 | char * |
| 22 | wstandout(win) |
| 23 | reg 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 | */ |
| 35 | char * |
| 36 | wstandend(win) |
| 37 | reg WINDOW *win; |
| 38 | { |
| 39 | if (!SO && !UC) |
| 40 | return FALSE; |
| 41 | |
| 42 | win->_flags &= ~_STANDOUT; |
| 43 | return (SE ? SE : UC); |
| 44 | } |