|
|
cc [flag . . .] file -locurses [library . . .]#include <ocurses.h> #include <oterm.h>
int tgetent(char bp, char name); int tgetflag(char id[2]); int tgetnum(char id[2]); char tgetstr(char id[2], char area); char tgoto(char cap, int col, int row); int tputs(char str, int affcnt, int (putc)(void));
The tgetent routine looks up the termcap entry for name. The emulation ignores the buffer pointer bp.
The tgetflag routine gets the boolean entry for id.
The tgetnum routine gets the numeric entry for id.
The tgetstr routine returns the string entry for id. Use tputs to output the returned string.
The tgoto routine instantiates the parameters into the given capability. The output from this routine is to be passed to tputs.
The tputs routine is described in the curs_terminfo(3ocurses) manual page.
Routines that return pointers return NULL on error.