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