1994-10-07 08:58:58 +00:00
|
|
|
#ifndef _TERMCAP_H
|
|
|
|
#define _TERMCAP_H 1
|
|
|
|
|
1994-12-02 06:40:24 +00:00
|
|
|
#ifdef __FreeBSD__
|
1994-10-07 08:58:58 +00:00
|
|
|
#include <sys/cdefs.h>
|
1994-12-02 06:40:24 +00:00
|
|
|
#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
|
1994-10-07 08:58:58 +00:00
|
|
|
|
1994-11-21 23:03:23 +00:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
1994-12-02 06:40:24 +00:00
|
|
|
#ifndef __FreeBSD__
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
|
|
|
1994-10-07 08:58:58 +00:00
|
|
|
extern char PC;
|
|
|
|
extern char *UP;
|
|
|
|
extern char *BC;
|
1994-12-02 06:40:24 +00:00
|
|
|
#ifdef __FreeBSD__
|
1994-10-07 08:58:58 +00:00
|
|
|
extern short ospeed;
|
1994-12-02 06:40:24 +00:00
|
|
|
#else
|
|
|
|
extern speed_t ospeed;
|
|
|
|
#endif
|
1994-10-07 08:58:58 +00:00
|
|
|
|
|
|
|
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, ...));
|
|
|
|
|
1994-11-21 23:03:23 +00:00
|
|
|
__END_DECLS
|
1994-10-07 08:58:58 +00:00
|
|
|
|
|
|
|
#endif /* _TERMCAP_H */
|