Erase the contents of the specified window and reset the cursor
to coordinates (0,0). The clear function acts on the stdscr
window.
Format
#include <curses.h>
int clear();
int wclear (WINDOW *win);
1 – Argument
win
A pointer to the window.
2 – Return Values
OK Indicates success.
ERR Indicates an error.