Source:NetHack 3.1.0/color.h

From NetHackWiki
Revision as of 06:07, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.1.0/color.h moved to Source:NetHack 3.1.0/color.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 color.h from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.0/color.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: @(#)color.h	3.1	92/02/02
2.    /* Copyright (c) Steve Linhart, Eric Raymond, 1989. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef COLOR_H
6.    #define COLOR_H
7.    
8.    /*
9.     * The color scheme used is tailored for an IBM PC.  It consists of the
10.    * standard 8 colors, folowed by their bright counterparts.  There are
11.    * exceptions, these are listed below.  Bright black doesn't mean very
12.    * much, so it is used as the "default" foreground color of the screen.
13.    */
14.   #define BLACK		0
15.   #define RED		1
16.   #define GREEN		2
17.   #define BROWN		3	/* on IBM, low-intensity yellow is brown */
18.   #define BLUE		4
19.   #define MAGENTA 	5
20.   #define CYAN		6
21.   #define GRAY		7	/* low-intensity white */
22.   #define NO_COLOR	8
23.   #define ORANGE_COLORED	9	/* "orange" conflicts with the object */
24.   #define BRIGHT_GREEN	10
25.   #define YELLOW		11
26.   #define BRIGHT_BLUE	12
27.   #define BRIGHT_MAGENTA  13
28.   #define BRIGHT_CYAN	14
29.   #define WHITE		15
30.   #define MAXCOLORS	16
31.   
32.   /* The "half-way" point for tty based color systems.  This is used in */
33.   /* the tty color setup code.  (IMHO, it should be removed - dean).    */
34.   #define BRIGHT		8
35.   
36.   /* these can be configured */
37.   #define HI_OBJ		MAGENTA
38.   #define HI_METAL	CYAN
39.   #define HI_COPPER	YELLOW
40.   #define HI_SILVER	GRAY
41.   #define HI_GOLD 	YELLOW
42.   #define HI_LEATHER	BROWN
43.   #define HI_CLOTH	BROWN
44.   #define HI_ORGANIC	BROWN
45.   #define HI_WOOD 	BROWN
46.   #define HI_PAPER	WHITE
47.   #define HI_GLASS	BRIGHT_CYAN
48.   #define HI_MINERAL	GRAY
49.   #define HI_ZAP		BRIGHT_BLUE
50.   
51.   #endif /* COLOR_H */