has_ic and has_il Subroutine

Purpose

Query functions for terminal insert and delete capability.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
bool has_ic(void);
bool has_il(void);

Description

The has_ic subroutine indicates whether the terminal has insert- and delete-character capabilities.

The has_il subroutine indicates whether the terminal has insert- and delete-line capabilities, or can simulate them using scrolling regions.

Return Values

The has_ic subroutine returns a value of TRUE if the terminal has insert- and delete-character capabilities. Otherwise, it returns FALSE.

The has_il subroutine returns a value of TRUE if the terminal has insert- and delete-line capabilities. Otherwise, it returns FALSE.

Examples

For the has_ic subroutine:

To determine the insert capability of a terminal by returning TRUE or FALSE into the user-defined variable insert_cap, enter:

int insert_cap;
insert_cap = has_ic();

For the has_il subroutine:

To determine the insert capability of a terminal by returning TRUE or FALSE into the user-defined variable insert_line, enter:

int insert_line;
insert_line = has_il();