Source:NetHack 3.3.0/tcap.h

From NetHackWiki
Revision as of 11:52, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.3.0/tcap.h moved to Source:NetHack 3.3.0/tcap.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Warning! This is the source code from an old release. For the latest release, see Source code

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.    /*	SCCS Id: @(#)tcap.h	3.3	92/10/21	*/
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1989. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    /* not named termcap.h because it may conflict with a system header */
6.    
7.    #ifndef TCAP_H
8.    #define TCAP_H
9.    
10.   #ifndef MICRO
11.   # define TERMLIB	/* include termcap code */
12.   #endif
13.   
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
20.   
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
31.   
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.   #define CM tc_lcl_data.tc_CM
38.   #define ND tc_lcl_data.tc_ND
39.   #define CD tc_lcl_data.tc_CD
40.   #define HI tc_lcl_data.tc_HI
41.   #define HE tc_lcl_data.tc_HE
42.   #define US tc_lcl_data.tc_US
43.   #define UE tc_lcl_data.tc_UE
44.   #define ul_hack tc_lcl_data.tc_ul_hack
45.   
46.   extern short ospeed;		/* set up in termcap.c */
47.   
48.   #ifdef TEXTCOLOR
49.   # ifdef TOS
50.   extern const char *hilites[CLR_MAX];
51.   # else
52.   extern NEARDATA char *hilites[CLR_MAX];
53.   # endif
54.   #endif
55.   
56.   #endif /* TCAP_H */