leaveok - control cursor position resulting from refresh operations
#include <curses.h> int leaveok(WINDOW *win, bool bf);
Refer to clearok().