Source:NetHack 3.4.3/include/tcap.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/tcap.h from NetHack 3.4.3. To link to a particular line, write [[tcap.h#line123]], for example.

  1. /*	SCCS Id: @(#)tcap.h	3.4	1992/10/21	*/
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1989. */
  3. /* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. /* not named termcap.h because it may conflict with a system header */
  2.  
  3. #ifndef TCAP_H
  4. #define TCAP_H
  5.  
  6. #ifndef MICRO
  7. # define TERMLIB	/* include termcap code */
  8. #endif
  9.  
  10. /* might display need graphics code? */
  11. #if !defined(AMIGA) && !defined(TOS) && !defined(MAC)
  12. # if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
  13. #  define ASCIIGRAPH
  14. # endif
  15. #endif
  16.  
  17. #ifndef DECL_H
  18. extern struct tc_gbl_data {   /* also declared in decl.h; defined in decl.c */
  19. char *tc_AS, *tc_AE;	/* graphics start and end (tty font swapping) */
  20. int   tc_LI,  tc_CO;	/* lines and columns */
  21. } tc_gbl_data;
  22. #define AS tc_gbl_data.tc_AS
  23. #define AE tc_gbl_data.tc_AE
  24. #define LI tc_gbl_data.tc_LI
  25. #define CO tc_gbl_data.tc_CO
  26. #endif
  27.  
  28. extern struct tc_lcl_data {   /* defined and set up in termcap.c */
  29. char *tc_CM, *tc_ND, *tc_CD;
  30. char *tc_HI, *tc_HE, *tc_US, *tc_UE;
  31. boolean tc_ul_hack;
  32. } tc_lcl_data;
  33. /* some curses.h declare CM etc. */
  34. #define nh_CM tc_lcl_data.tc_CM
  35. #define nh_ND tc_lcl_data.tc_ND
  36. #define nh_CD tc_lcl_data.tc_CD
  37. #define nh_HI tc_lcl_data.tc_HI
  38. #define nh_HE tc_lcl_data.tc_HE
  39. #define nh_US tc_lcl_data.tc_US
  40. #define nh_UE tc_lcl_data.tc_UE
  41. #define ul_hack tc_lcl_data.tc_ul_hack
  42.  
  43. extern short ospeed;		/* set up in termcap.c */
  44.  
  45. #ifdef TEXTCOLOR
  46. # ifdef TOS
  47. extern const char *hilites[CLR_MAX];
  48. # else
  49. extern NEARDATA char *hilites[CLR_MAX];
  50. # endif
  51. #endif
  52.  
  53. #endif /* TCAP_H */