1 .\" $NetBSD: termcap.3,v 1.4 2010/02/04 09:12:55 wiz Exp $
3 .\" Copyright (c) 2009 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
40 .Nd terminal independent operation routines
49 .Fn tgetent "char *bp" "const char *name"
51 .Fn tgetnum "const char *id"
53 .Fn tgetflag "const char *id"
55 .Fn tgetstr "const char *id" "char **area"
57 .Fn tgoto "const char *cm" "int destcol" "int destline"
59 These functions extract and use capabilities from a terminal capability
61 They exist as wrappers around equivalent
63 functions, which new code should use.
64 These are low level routines; see
66 for a higher level package.
79 is actually used internally.
82 function returns \-1 if none of the
84 data base files could be opened,
85 0 if the terminal name given does not match an entry,
86 and 1 if all goes well.
93 function gets the numeric value of the capability
95 returning \-1 if it is not given for the terminal.
98 function returns 1 if the specified capability is present in the terminal's
99 entry, 0 if it is not.
102 function returns the string value of the capability
109 as such it should only be processed by
115 if the capability was not found.
122 function returns a cursor addressing string decoded from
133 first appeared in 4.0BSD.
138 extensions which were removed in
144 .An Roy Marples Aq roy@NetBSD.org