Gets the value of terminal's numeric capability.
Curses Library (libcurses.a)
#include <curses.h> #include <term.h>
 
tigetnum( CapName) 
register char *CapName;
The tigetnum subroutine returns the value of terminal's numeric capability. Use this subroutine to get a capability for the current terminal. When successful, this subroutine returns the current value of the capability specified by the CapName parameter. Otherwise, if it is not a numeric value, this subroutine returns -2.
Upon successful completion, the tigetnum subroutine returns the value of terminal's numeric capability.
| -2 | Indicates the value specified by the CapName parameter is not numeric. | 
| CapName | Identifies the terminal capability to check for. | 
To determine if number of labels is a defined numeric capability for the current terminal, use:
rc = tigetnum("nlab"); 
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.