1 /* Public Domain Curses */
2 
3 /* PDCurses doesn't operate with terminfo, but we need these functions for
4    compatibility, to allow some things (notably, interface libraries for
5    other languages) to be compiled. Anyone who tries to actually _use_
6    them will be disappointed, since they only return ERR. */
7 
8 #ifndef __PDCURSES_TERM_H__
9 #define __PDCURSES_TERM_H__ 1
10 
11 #include <curses.h>
12 
13 #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
14 extern "C"
15 {
16 #endif
17 
18 typedef struct
19 {
20     const char *_termname;
21 } TERMINAL;
22 
23 /* PDCEX is defined in curses.h */
24 PDCEX  TERMINAL *cur_term;
25 
26 int     del_curterm(TERMINAL *);
27 int     putp(const char *);
28 int     restartterm(const char *, int, int *);
29 TERMINAL *set_curterm(TERMINAL *);
30 int     setterm(const char *);
31 int     setupterm(const char *, int, int *);
32 int     tgetent(char *, const char *);
33 int     tgetflag(const char *);
34 int     tgetnum(const char *);
35 char   *tgetstr(const char *, char **);
36 char   *tgoto(const char *, int, int);
37 int     tigetflag(const char *);
38 int     tigetnum(const char *);
39 char   *tigetstr(const char *);
40 char   *tparm(const char *, long, long, long, long, long,
41               long, long, long, long);
42 int     tputs(const char *, int, int (*)(int));
43 
44 #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
45 }
46 #endif
47 
48 #endif /* __PDCURSES_TERM_H__ */
49