xref: /illumos-gate/usr/src/lib/libtermcap/common/xtermcap.h (revision cdd3e9a818787b4def17c9f707f435885ce0ed31)
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  * Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
15  */
16 
17 #ifndef	_TERMCAP_H_
18 #define	_TERMCAP_H_
19 
20 /*
21  * This declares the public functions exported by the
22  * "filter" library: libtermcap.  That exports only
23  * the traditional BSD-style functions and data.
24  *
25  * Note that the libtermcap filter library uses NODIRECT
26  * linker bindings when filtering what libcurses exports
27  * so that an application can link with an alternative
28  * curses library providing the symbols below, and those
29  * will be used instead of the ones in libcurses.
30  */
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 extern char PC, *UP, *BC;
37 extern short ospeed;
38 
39 /*
40  * These are intentionally the same as the XPG4v2 term.h
41  * declares so the compiler won't bark if that is included
42  * too.
43  */
44 extern int tgetent(char *, const char *);
45 extern int tgetflag(char *);
46 extern int tgetnum(char *);
47 extern char *tgetstr(char *, char **);
48 extern char *tgoto(char *, int, int);
49 extern int tputs(const char *, int, int (*)(int));
50 
51 #ifdef	__cplusplus
52 }
53 #endif
54 
55 #endif	/* _TERMCAP_H_ */
56