2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH CURS_TERMCAP 3CURSES "Dec 31, 1996"
9 curs_termcap, tgetent, tgetflag, tgetnum, tgetstr, tgoto \- curses interfaces
10 (emulated) to the termcap library
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lcurses\fR [ \fIlibrary\fR ... ]
18 \fBint\fR \fBtgetent\fR(\fBchar *\fR\fIbp\fR, \fBchar *\fR\fIname\fR);
23 \fBint\fR \fBtgetflag\fR(\fBchar\fR \fIid\fR[2]);
28 \fBint\fR \fBtgetnum\fR(\fBchar\fR \fIid\fR[2]);
33 \fBchar *\fR\fBtgetstr\fR(\fBchar\fR \fIid\fR[2], \fBchar **\fR\fIarea\fR);
38 \fBchar *\fR\fBtgoto\fR(\fBchar *\fR\fIcap\fR, \fBint\fR \fIcol\fR, \fBint\fR \fIrow\fR);
43 \fBint\fR \fBtputs\fR(\fBchar *\fR\fIstr\fR, \fBint\fR \fIaffcnt\fR, \fBint (*\fR\fIputc\fR)(void));
49 These routines are included as a conversion aid for programs that use the
50 \fItermcap\fR library. Their parameters are the same and the routines are
51 emulated using the \fIterminfo\fR database. These routines are supported at
52 Level 2 and should not be used in new applications.
55 The \fBtgetent()\fR routine looks up the termcap entry for \fIname\fR. The
56 emulation ignores the buffer pointer \fIbp\fR.
59 The \fBtgetflag()\fR routine gets the boolean entry for \fIid\fR.
62 The \fBtgetnum()\fR routine gets the numeric entry for \fIid\fR.
65 The \fBtgetstr()\fR routine returns the string entry for \fIid\fR. Use
66 \fBtputs()\fR to output the returned string.
69 The \fBtgoto()\fR routine instantiates the parameters into the given
70 capability. The output from this routine is to be passed to \fBtputs()\fR.
73 The \fBtputs()\fR routine is described on the \fBcurs_terminfo\fR(3CURSES)
78 Routines that return an integer return \fBERR\fR upon failure and an integer
79 value other than \fBERR\fR upon successful completion.
82 Routines that return pointers return \fINULL\fR on error.
86 See \fBattributes\fR(5) for descriptions of the following attributes:
94 ATTRIBUTE TYPE ATTRIBUTE VALUE
102 \fBcurs_terminfo\fR(3CURSES), \fBcurses\fR(3CURSES), \fBputc\fR(3C),
107 The header <\fBcurses.h\fR> automatically includes the headers <\fBstdio.h\fR>
108 and <\fBunctrl.h\fR>.