xref: /illumos-gate/usr/src/lib/libtermcap/common/termcap.h (revision 7c1d35456b77b833f089b886b99aa431a24e1377)
1*7c1d3545SGordon Ross /*
2*7c1d3545SGordon Ross  * This file and its contents are supplied under the terms of the
3*7c1d3545SGordon Ross  * Common Development and Distribution License ("CDDL"), version 1.0.
4*7c1d3545SGordon Ross  * You may only use this file in accordance with the terms of version
5*7c1d3545SGordon Ross  * 1.0 of the CDDL.
6*7c1d3545SGordon Ross  *
7*7c1d3545SGordon Ross  * A full copy of the text of the CDDL should have accompanied this
8*7c1d3545SGordon Ross  * source.  A copy of the CDDL is also available via the Internet at
9*7c1d3545SGordon Ross  * http://www.illumos.org/license/CDDL.
10*7c1d3545SGordon Ross  */
11*7c1d3545SGordon Ross 
12*7c1d3545SGordon Ross /*
13*7c1d3545SGordon Ross  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
14*7c1d3545SGordon Ross  */
15*7c1d3545SGordon Ross 
16*7c1d3545SGordon Ross #ifndef	_TERMCAP_H_
17*7c1d3545SGordon Ross #define	_TERMCAP_H_
18*7c1d3545SGordon Ross 
19*7c1d3545SGordon Ross /*
20*7c1d3545SGordon Ross  * This declares the public functions exported by the
21*7c1d3545SGordon Ross  * "filter" library: libtermcap.  That exports only
22*7c1d3545SGordon Ross  * the traditional BSD-style functions and data.
23*7c1d3545SGordon Ross  *
24*7c1d3545SGordon Ross  * Note that the libtermcap filter library uses NODIRECT
25*7c1d3545SGordon Ross  * linker bindings when filtering what libcurses exports
26*7c1d3545SGordon Ross  * so that an application can link with an alternative
27*7c1d3545SGordon Ross  * curses library providing the symbols below, and those
28*7c1d3545SGordon Ross  * will be used instead of the ones in libcurses.
29*7c1d3545SGordon Ross  */
30*7c1d3545SGordon Ross 
31*7c1d3545SGordon Ross #ifdef	__cplusplus
32*7c1d3545SGordon Ross extern "C" {
33*7c1d3545SGordon Ross #endif
34*7c1d3545SGordon Ross 
35*7c1d3545SGordon Ross extern char PC, *UP, *BC;
36*7c1d3545SGordon Ross extern short ospeed;
37*7c1d3545SGordon Ross 
38*7c1d3545SGordon Ross /*
39*7c1d3545SGordon Ross  * These are intentionally the same as term.h declares
40*7c1d3545SGordon Ross  * so the compiler won't bark if you include that too.
41*7c1d3545SGordon Ross  */
42*7c1d3545SGordon Ross extern int tgetent(char *, char *);
43*7c1d3545SGordon Ross extern int tgetflag(char *);
44*7c1d3545SGordon Ross extern int tgetnum(char *);
45*7c1d3545SGordon Ross extern char *tgetstr(char *, char **);
46*7c1d3545SGordon Ross extern char *tgoto(char *, int, int);
47*7c1d3545SGordon Ross extern int tputs(char *, int, int (*)(char));
48*7c1d3545SGordon Ross 
49*7c1d3545SGordon Ross #ifdef	__cplusplus
50*7c1d3545SGordon Ross }
51*7c1d3545SGordon Ross #endif
52*7c1d3545SGordon Ross 
53*7c1d3545SGordon Ross #endif	/* _TERMCAP_H_ */
54