idlok(WINDOW *win, bool flag) { T((T_CALLED("idlok(%p,%d)"), win, flag)); if (win) { _nc_idlok = win->_idlok = (flag && (has_il() || change_scroll_region)); returnCode(OK); } else returnCode(ERR); }
/*** Fetch the line insert and delete capability of the terminal. @function has_il @treturn bool `true`, if the terminal has insert and delete line operations @see has_il(3x) */ static int Phas_il(lua_State *L) { return pushboolresult(has_il()); }