1 /* 2 * Copyright (c) 1981, 1993, 1994 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.2 (Berkeley) 05/04/94"; 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