scrollok - enable or disable scrolling on a window
#include <curses.h> int scrollok(WINDOW *win, bool bf);
Refer to clearok().