Query functions for terminal insert and delete capability.
Curses Library (libcurses.a)
#include <curses.h>
bool has_ic(void);
bool has_il(void);
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.
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.
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();
Curses Overview for Programming in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Understanding Terminals with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.