Source:NetHack 3.6.1/include/tcap.h

From NetHackWiki
(Redirected from Tcap.h)
Jump to: navigation, search

Below is the full text to tcap.h from the source code of NetHack 3.6.1. To link to a particular line, write [[Source:NetHack 3.6.1/include/tcap.h#line123]], for example.

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.  /* NetHack 3.6	tcap.h	$NHDT-Date: 1432512774 2015/05/25 00:12:54 $  $NHDT-Branch: master $:$NHDT-Revision: 1.10 $ */
  2.  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1989. */
  3.  /*-Copyright (c) Kenneth Lorber, Kensington, Maryland, 2015. */
  4.  /* NetHack may be freely redistributed.  See license for details. */
  5.  
  6.  /* not named termcap.h because it may conflict with a system header */
  7.  
  8.  #ifndef TCAP_H
  9.  #define TCAP_H
  10.  
  11.  #ifndef MICRO
  12.  #define TERMLIB /* include termcap code */
  13.  #endif
  14.  
  15.  /* might display need graphics code? */
  16.  #if !defined(AMIGA) && !defined(TOS) && !defined(MAC)
  17.  #if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
  18.  #define ASCIIGRAPH
  19.  #endif
  20.  #endif
  21.  
  22.  #ifndef DECL_H
  23.  extern struct tc_gbl_data { /* also declared in decl.h; defined in decl.c */
  24.      char *tc_AS, *tc_AE;    /* graphics start and end (tty font swapping) */
  25.      int tc_LI, tc_CO;       /* lines and columns */
  26.  } tc_gbl_data;
  27.  #define AS tc_gbl_data.tc_AS
  28.  #define AE tc_gbl_data.tc_AE
  29.  #define LI tc_gbl_data.tc_LI
  30.  #define CO tc_gbl_data.tc_CO
  31.  #endif
  32.  
  33.  extern struct tc_lcl_data { /* defined and set up in termcap.c */
  34.      char *tc_CM, *tc_ND, *tc_CD;
  35.      char *tc_HI, *tc_HE, *tc_US, *tc_UE;
  36.      boolean tc_ul_hack;
  37.  } tc_lcl_data;
  38.  /* some curses.h declare CM etc. */
  39.  #define nh_CM tc_lcl_data.tc_CM
  40.  #define nh_ND tc_lcl_data.tc_ND
  41.  #define nh_CD tc_lcl_data.tc_CD
  42.  #define nh_HI tc_lcl_data.tc_HI
  43.  #define nh_HE tc_lcl_data.tc_HE
  44.  #define nh_US tc_lcl_data.tc_US
  45.  #define nh_UE tc_lcl_data.tc_UE
  46.  #define ul_hack tc_lcl_data.tc_ul_hack
  47.  
  48.  extern short ospeed; /* set up in termcap.c */
  49.  
  50.  #ifdef TEXTCOLOR
  51.  #ifdef TOS
  52.  extern const char *hilites[CLR_MAX];
  53.  #else
  54.  extern NEARDATA char *hilites[CLR_MAX];
  55.  #endif
  56.  #endif
  57.  
  58.  #endif /* TCAP_H */