has_ic(3curses)


has_ic -- query functions for terminal insert and delete capability

Synopsis

cc [options] file -lcurses
#include <curses.h>

bool has_ic(void);

bool has_il(void);

Description

The has_ic(3curses) function indicates whether the terminal has insert- and delete-character capabilities.

The has_il(3curses) function indicates whether the terminal has insert- and delete-line capabilities, or can simulate them using scrolling regions.

Return value

The has_ic(3curses) function returns TRUE if the terminal has insert- and delete-character capabilities. Otherwise, it returns FALSE.

The has_il(3curses) function returns TRUE if the terminal has insert- and delete-line capabilities. Otherwise, it returns FALSE.

Errors

No errors are defined.

Usage

The has_il(3curses) function may be used to determine if it would be appropriate to turn on physical scrolling using scrollok(3curses).

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004