The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


clear, erase, wclear, werase - clear a window


#include <curses.h>

int clear(void);

int erase(void);

int wclear(WINDOW *win);

int werase(WINDOW *win);


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.


Upon successful completion, these functions return OK. Otherwise, they return ERR.


No errors are defined.


clearok(), doupdate(), <curses.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]