[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 2

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();

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

Curses Overview for Programming in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

Understanding Terminals with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Contents | Glossary | Home | Search ]