idlok - enable or disable use of terminal insert- and delete-line features
#include <curses.h> int idlok(WINDOW *win, bool bf);
Refer to clearok().