curs_termcap(3ocurses)


curs_termcap: tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs -- curses interfaces (emulated) to the termcap library

Synopsis

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));

Description

These routines are included as a conversion aid for programs that use the termcap library. Their parameters are the same and the routines are emulated using the terminfo database. These routines are supported at Level 2 and should not be used in new applications.

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.

Return values

Routines that return an integer return ERR upon failure and an integer value other than ERR upon successful completion.

Routines that return pointers return NULL on error.

References

curses(3ocurses), curs_terminfo(3ocurses), putc(3S)

Notices

The header file ocurses.h automatically includes the header files stdio.h and unctrl.h.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004