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  TERMINAL *cur_term;
24 
25 PDCEX  int     del_curterm(TERMINAL *);
26 PDCEX  int     putp(const char *);
27 PDCEX  int     restartterm(const char *, int, int *);
28 PDCEX  TERMINAL *set_curterm(TERMINAL *);
29 PDCEX  int     setterm(const char *);
30 PDCEX  int     setupterm(const char *, int, int *);
31 PDCEX  int     tgetent(char *, const char *);
32 PDCEX  int     tgetflag(const char *);
33 PDCEX  int     tgetnum(const char *);
34 PDCEX  char   *tgetstr(const char *, char **);
35 PDCEX  char   *tgoto(const char *, int, int);
36 PDCEX  int     tigetflag(const char *);
37 PDCEX  int     tigetnum(const char *);
38 PDCEX  char   *tigetstr(const char *);
39 PDCEX  char   *tparm(const char *, long, long, long, long, long,
40                      long, long, long, long);
41 PDCEX  int     tputs(const char *, int, int (*)(int));
42 
43 #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
44 }
45 #endif
46 
47 #endif /* __PDCURSES_TERM_H__ */
48