tgetnum
tgetnum is a function in the termcap library used to retrieve numeric terminal capability values from a terminal description loaded by tgetent. It is part of the legacy termcap interface, which predates terminfo and is still used for compatibility on many Unix-like systems.
Prototype and behavior: int tgetnum(char *id); It returns the numeric value associated with the capability named
Using tgetnum: After initializing with tgetent, you can request numeric capabilities such as "cols" and "lines"
Portability and related functions: tgetnum is part of the termcap API; on modern systems, ncurses provides compatibility
See also: tgetflag, tgetstr, tgetent, tigetnum, tgoto, tputs, termcap, terminfo, ncurses.