Erases the window by painting it with blanks. The erase function
acts on the stdscr window.
Format
#include <curses.h>
int erase();
int werase (WINDOW *win);
1 – Argument
win
A pointer to the window.
2 – Description
Both the erase and werase functions leave the cursor at the
current position on the terminal screen after completion; they
do not return the cursor to the home coordinates of (0,0).
3 – Return Values
OK Indicates success.
ERR Indicates an error.