HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

tigetflag tigetnum tigetstr

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The tigetflag, tigetnum, and tigetstr routines are used to return the value of terminfo capability (interface to terminfo).

Syntax

   #include <curses.h>



   int tigetflag (char *capname);

   int tigetnum (char *capname);

   char *tigetstr (char *capname);

Parameters

capname

The name of the terminfo capability for which the value is required.

Return Values

The tigetflag() routine returns -1 if capname is not a Boolean capability. The tigetnum() routine returns -1 if capname is not a numeric capability. The tigetstr() routine returns (char *)-1 if capname is not a string capability.

Description

The tigetflag(), tigetnum(), and tigetstr() routines return values for terminfo capabilities passed to them.

The following null-terminated arrays contain the capnames, the termcap codes and full C names for each of the terminfo variables.

    char *boolnames, *boolcodes, *boolfnames

    char *numnames, *numcodes, *numfnames

    char *strnames, *strcodes, *strfnames

Implementation Considerations

UNIX System V implementation

See Also

terminfo

Portability

UNIX System V

Feedback to webmaster