#include <curses.h> extern WINDOW *curscr;
The external variable curscr points to an internal data structure. It can be specified as an argument to certain functions such as clearok(3XCURSES).
clearok(3XCURSES)