tgetnum Subroutine

Purpose

Returns the numeric entry for the specified termcap identifier.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int tgetnum( ID)
char *ID;

Description

The tgetnum subroutine returns the numeric entry for the specified termcap identifier. This subroutine is provided for binary compatibility with applications that use the termcap file.

Parameters

Item Description
ID Specifies the 2-character string that contains a termcap identifier.

Return Values

The tgetnum subroutine returns the numeric entry for the specified termcap identifier.

Item Description
-1 Returned if the ID is not found or not numeric.