tcap.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)tcap.h     3.4     1992/10/21      */
00002 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1989. */
00003 /* NetHack may be freely redistributed.  See license for details. */
00004 
00005 /* not named termcap.h because it may conflict with a system header */
00006 
00007 #ifndef TCAP_H
00008 #define TCAP_H
00009 
00010 #ifndef MICRO
00011 # define TERMLIB        /* include termcap code */
00012 #endif
00013 
00014 /* might display need graphics code? */
00015 #if !defined(AMIGA) && !defined(TOS) && !defined(MAC)
00016 # if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
00017 #  define ASCIIGRAPH
00018 # endif
00019 #endif
00020 
00021 #ifndef DECL_H
00022 extern struct tc_gbl_data {   /* also declared in decl.h; defined in decl.c */
00023     char *tc_AS, *tc_AE;        /* graphics start and end (tty font swapping) */
00024     int   tc_LI,  tc_CO;        /* lines and columns */
00025 } tc_gbl_data;
00026 #define AS tc_gbl_data.tc_AS
00027 #define AE tc_gbl_data.tc_AE
00028 #define LI tc_gbl_data.tc_LI
00029 #define CO tc_gbl_data.tc_CO
00030 #endif
00031 
00032 extern struct tc_lcl_data {   /* defined and set up in termcap.c */
00033     char *tc_CM, *tc_ND, *tc_CD;
00034     char *tc_HI, *tc_HE, *tc_US, *tc_UE;
00035     boolean tc_ul_hack;
00036 } tc_lcl_data;
00037 /* some curses.h declare CM etc. */
00038 #define nh_CM tc_lcl_data.tc_CM
00039 #define nh_ND tc_lcl_data.tc_ND
00040 #define nh_CD tc_lcl_data.tc_CD
00041 #define nh_HI tc_lcl_data.tc_HI
00042 #define nh_HE tc_lcl_data.tc_HE
00043 #define nh_US tc_lcl_data.tc_US
00044 #define nh_UE tc_lcl_data.tc_UE
00045 #define ul_hack tc_lcl_data.tc_ul_hack
00046 
00047 extern short ospeed;            /* set up in termcap.c */
00048 
00049 #ifdef TEXTCOLOR
00050 # ifdef TOS
00051 extern const char *hilites[CLR_MAX];
00052 # else
00053 extern NEARDATA char *hilites[CLR_MAX];
00054 # endif
00055 #endif
00056 
00057 #endif /* TCAP_H */