idcok(WINDOW *win, bool flag) { T((T_CALLED("idcok(%p,%d)"), win, flag)); if (win) _nc_idcok = win->_idcok = (flag && has_ic()); returnVoid; }
int main(void) { initscr(); addstr("This terminal "); if(has_ic()) addstr("has "); else addstr("does not have "); addstr("insert/delete character abilities"); refresh(); getch(); endwin(); return 0; }
/*** Fetch the character insert and delete capability of the terminal. @function has_ic @treturn bool `true`, if the terminal has insert and delete character operations @see has_ic(3x) */ static int Phas_ic(lua_State *L) { return pushboolresult(has_ic()); }