term.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Public Domain Curses */
  2. /* $Id: term.h,v 1.16 2008/07/13 16:08:16 wmcbrine Exp $ */
  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. #ifndef __PDCURSES_TERM_H__
  8. #define __PDCURSES_TERM_H__ 1
  9. #include <curses.h>
  10. #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
  11. extern "C"
  12. {
  13. #endif
  14. typedef struct
  15. {
  16. const char *_termname;
  17. } TERMINAL;
  18. #ifdef PDC_DLL_BUILD
  19. # ifndef CURSES_LIBRARY
  20. __declspec(dllimport) TERMINAL *cur_term;
  21. # else
  22. __declspec(dllexport) extern TERMINAL *cur_term;
  23. # endif
  24. #else
  25. extern TERMINAL *cur_term;
  26. #endif
  27. int del_curterm(TERMINAL *);
  28. int putp(const char *);
  29. int restartterm(const char *, int, int *);
  30. TERMINAL *set_curterm(TERMINAL *);
  31. int setterm(const char *);
  32. int setupterm(const char *, int, int *);
  33. int tgetent(char *, const char *);
  34. int tgetflag(const char *);
  35. int tgetnum(const char *);
  36. char *tgetstr(const char *, char **);
  37. char *tgoto(const char *, int, int);
  38. int tigetflag(const char *);
  39. int tigetnum(const char *);
  40. char *tigetstr(const char *);
  41. char *tparm(const char *, long, long, long, long, long,
  42. long, long, long, long);
  43. int tputs(const char *, int, int (*)(int));
  44. #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
  45. }
  46. #endif
  47. #endif /* __PDCURSES_TERM_H__ */