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