clear, wclear - clear window
The routine resets the entire default window to blanks and sets the
(y, x) coordinates to (0, 0).
The routine resets the entire specified window to blanks and sets the
current (y, x) coordinates to (0, 0).
The routine assumes that the screen may have garbage on it that it
doesn't know about. The routine first calls which copies blanks to
every position in the default window, and then which clears the physi‐
cal screen completely on the next call to for
The routine is a macro.
The and functions return OK on success and ERR on error.
See Alsoclearok(3cur), erase(3cur), refresh(3cur)clear(3cur)