clear(3X) clear(3X)
NAME
clear, erase, wclear, werase - clear a window
SYNOPSIS
cc [flag ...] file ... -lcurses [library ...]
#include <curses.h>
int clear(void);
int erase(void);
int wclear(WINDOW *win);
int werase(WINDOW *win);
DESCRIPTION
The clear(), erase(), wclear() and werase() functions clear every
position in the current or specified window.
The clear() and wclear() functions also achieve the same effect as
calling clearok(), so that the window is cleared completely on the
next call to wrefresh() for the window and is redrawn in its entirety.
RETURN VALUE
Upon successful completion, these functions return OK. Otherwise, they
return ERR.
ERRORS
No errors are defined.
SEE ALSO
clearok(3X), curses(3X), doupdate(3X), curses(5).
Page 1 Reliant UNIX 5.44 Printed 11/98