NAME
has_ic, has_il — query functions for terminal insert and delete capability
SYNOPSIS
#include <curses.h>
bool has_ic(void);
bool has_il(void);
DESCRIPTION
The
has_ic()
function indicates whether the terminal has insert- and delete-character
capabilities.
The
has_il()
function indicates whether the terminal has insert- and delete-line
capabilities, or can simulate them using scrolling regions.
RETURN VALUE
The
has_ic()
function returns TRUE if the terminal has insert- and delete-character
capabilities. Otherwise, it returns FALSE.
The
has_il()
function returns TRUE if the terminal has insert- and delete-line
capabilities. Otherwise, it returns FALSE.
ERRORS
No errors are defined.
APPLICATION USAGE
The
has_il()
function may be used to determine if it would be appropriate to turn on
physical scrolling using
scrollok().
CHANGE HISTORY
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The
has_il()
function is merged with this entry.
In previous issues, it appeared in an entry of its own.
The entry is rewritten for clarity.
The argument list for the
has_ic()
and
has_il()
functions is explicitly declared as void.