Source:NetHack 3.4.3/include/color.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/color.h from NetHack 3.4.3. To link to a particular line, write [[color.h#line123]], for example.

  1. /*	SCCS Id: @(#)color.h	3.4	1992/02/02	*/
  2. /* Copyright (c) Steve Linhart, Eric Raymond, 1989. */
  3. /* NetHack may be freely redistributed.  See license for details. */

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. #ifndef COLOR_H
  2. #define COLOR_H
  3.  
  4. /*
  5. * The color scheme used is tailored for an IBM PC.  It consists of the
  6. * standard 8 colors, folowed by their bright counterparts.  There are
  7. * exceptions, these are listed below.	Bright black doesn't mean very
  8. * much, so it is used as the "default" foreground color of the screen.
  9. */
  10. #define CLR_BLACK		0
  11. #define CLR_RED			1
  12. #define CLR_GREEN		2
  13. #define CLR_BROWN		3 /* on IBM, low-intensity yellow is brown */
  14. #define CLR_BLUE		4
  15. #define CLR_MAGENTA		5
  16. #define CLR_CYAN		6
  17. #define CLR_GRAY		7 /* low-intensity white */
  18. #define NO_COLOR		8
  19. #define CLR_ORANGE		9
  20. #define CLR_BRIGHT_GREEN	10
  21. #define CLR_YELLOW		11
  22. #define CLR_BRIGHT_BLUE		12
  23. #define CLR_BRIGHT_MAGENTA	13
  24. #define CLR_BRIGHT_CYAN		14
  25. #define CLR_WHITE		15
  26. #define CLR_MAX			16
  27.  
  28. /* The "half-way" point for tty based color systems.  This is used in */
  29. /* the tty color setup code.  (IMHO, it should be removed - dean).    */
  30. #define BRIGHT		8
  31.  
  32. /* these can be configured */
  33. #define HI_OBJ		CLR_MAGENTA
  34. #define HI_METAL	CLR_CYAN
  35. #define HI_COPPER	CLR_YELLOW
  36. #define HI_SILVER	CLR_GRAY
  37. #define HI_GOLD		CLR_YELLOW
  38. #define HI_LEATHER	CLR_BROWN
  39. #define HI_CLOTH	CLR_BROWN
  40. #define HI_ORGANIC	CLR_BROWN
  41. #define HI_WOOD		CLR_BROWN
  42. #define HI_PAPER	CLR_WHITE
  43. #define HI_GLASS	CLR_BRIGHT_CYAN
  44. #define HI_MINERAL	CLR_GRAY
  45. #define DRAGON_SILVER	CLR_BRIGHT_CYAN
  46. #define HI_ZAP		CLR_BRIGHT_BLUE
  47.  
  48. #endif /* COLOR_H */