xref: /original-bsd/lib/libcurses/clear.c (revision ae45e3e8)
1 /*
2  * Copyright (c) 1981, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)clear.c	8.1 (Berkeley) 06/04/93";
10 #endif	/* not lint */
11 
12 #include <curses.h>
13 
14 /*
15  * wclear --
16  *	Clear the window.
17  */
18 int
19 wclear(win)
20 	register WINDOW *win;
21 {
22 	if (werase(win) == OK) {
23 		win->flags |= __CLEAROK;
24 		return (OK);
25 	}
26 	return (ERR);
27 }
28