#include <term.h>int tgetent(char *bp, const char *name);
int tgetflag(char id2);
int tgetnum(char id2);
char *tgetstr(char id2, char **area);
char *tgoto(char *cap, int col, int row);
The tgetflag(3curses) function gets the boolean entry for id.
The tgetnum(3curses) function gets the numeric entry for id.
The tgetstr(3curses) function gets the string entry for id. If area is not a null pointer and does not point to a null pointer, tgetstr(3curses) copies the string entry into the buffer pointed to by *area and advances the variable pointed to by area to the first byte after the copy of the string entry.
The tgoto(3curses) function instantiates the parameters col and row into the capability cap and returns a pointer to the resulting string.
All of the information available in the terminfo database need not be available through these functions.
Functions that return pointers return a null pointer on error.
These functions are only guaranteed to operate reliably on character sets in which each character fits into a single byte, whose attributes can be expressed using only constants with the A_ prefix.
Any terminal capabilities from the terminfo database that cannot be retrieved using these interfaces can be retrieved using the interfaces described on the tigetflag(3curses) page.
Portable applications must use tputs(3curses) to output the strings returned by tgetstr(3curses) and tgoto(3curses).