summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/termcap.h
blob: 68fa7e54f2f1c6df364bed62b2069b91a3e594ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _TERMCAP_H
#define _TERMCAP_H	1

#ifdef __FreeBSD__
#include <sys/cdefs.h>
#else
#ifndef __P
#if defined(__STDC__) || defined(__cplusplus)
#define __P(protos) protos
#else
#define	__P(protos)	()		/* traditional C preprocessor */
#endif
#endif
#ifndef __BEGIN_DECLS
#ifdef __cplusplus
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS   };
#else
#define __BEGIN_DECLS
#define __END_DECLS
#endif
#endif
#endif

__BEGIN_DECLS

#ifndef __FreeBSD__
#include <sys/types.h>
#endif

extern char PC;
extern char *UP;
extern char *BC;
#ifdef __FreeBSD__
extern short ospeed;
#else
extern speed_t ospeed;
#endif

extern int tgetent __P((char *, const char *));
extern int tgetflag __P((const char *));
extern int tgetnum __P((const char *));
extern char *tgetstr __P((const char *, char **));

extern int tputs __P((const char *, int, int (*)(int)));

extern char *tgoto __P((const char *, int, int));
extern char *tparam __P((const char *, char *, int, ...));

__END_DECLS

#endif /* _TERMCAP_H */
OpenPOWER on IntegriCloud