diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /lib/libcurses/standout.c | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Diffstat (limited to 'lib/libcurses/standout.c')
| -rw-r--r-- | lib/libcurses/standout.c | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/lib/libcurses/standout.c b/lib/libcurses/standout.c index 9cdaee6b1074..14a983da6185 100644 --- a/lib/libcurses/standout.c +++ b/lib/libcurses/standout.c @@ -1,6 +1,6 @@ /* - * Copyright (c) 1981 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1981, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,40 +32,37 @@ */ #ifndef lint -static char sccsid[] = "@(#)standout.c 5.4 (Berkeley) 6/1/90"; +static char sccsid[] = "@(#)standout.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ -/* - * routines dealing with entering and exiting standout mode - * - */ - -# include "curses.ext" +#include <curses.h> /* - * enter standout mode + * wstandout + * Enter standout mode. */ -char * +int wstandout(win) -reg WINDOW *win; + register WINDOW *win; { if (!SO && !UC) - return FALSE; + return (0); - win->_flags |= _STANDOUT; - return (SO ? SO : UC); + win->flags |= __WSTANDOUT; + return (1); } /* - * exit standout mode + * wstandend -- + * Exit standout mode. */ -char * +int wstandend(win) -reg WINDOW *win; + register WINDOW *win; { if (!SO && !UC) - return FALSE; + return (0); - win->_flags &= ~_STANDOUT; - return (SE ? SE : UC); + win->flags &= ~__WSTANDOUT; + return (1); } |
