|TGETENT(3XCURSES)||X/Open Curses Library Functions||TGETENT(3XCURSES)|
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \ -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <term.h> int tgetent(char *bp, const char *name);
int tgetflag(char id);
int tgetnum(char id);
char *tgetstr(char id, char **area);
char *tgoto(char *cap, int col, int row);
The tgetent() function looks up the termcap entry for name. The emulation ignores the buffer pointer bp.
The tgetflag() function gets the Boolean entry for id.
The tgetnum() function gets the numeric entry for id.
The tgetstr() function gets the string entry for id. If area is not a null pointer and does not point to a null pointer, tgetstr() 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() 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.
Upon successful completion, those functions that return integers return OK. Otherwise, they return ERR.
Those functions that return pointers return a null pointer when an error occurs.
No errors are defined.
These functions are included as a conversion aid for programs that use the termcap library. Their arguments are the same and the functions are emulated using the terminfo database.
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 functions can be retrieved using the functions described on the tigetflag(3XCURSES) manual page.
Portable applications must use tputs(3XCURSES) to output the strings returned by tgetstr() and tgoto().
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
|June 5, 2002||OmniOS|