I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
62 lines
1.8 KiB
C
62 lines
1.8 KiB
C
/* NetHack 3.6 color.h $NHDT-Date: 1428088106 2015/04/03 19:08:26 $ $NHDT-Branch: scshunt-regex $:$NHDT-Revision: 1.8 $ */
|
|
/* NetHack 3.6 color.h $Date: 2009/05/06 10:44:34 $ $Revision: 1.5 $ */
|
|
/* SCCS Id: @(#)color.h 3.5 1992/02/02 */
|
|
/* Copyright (c) Steve Linhart, Eric Raymond, 1989. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef COLOR_H
|
|
#define COLOR_H
|
|
|
|
/*
|
|
* The color scheme used is tailored for an IBM PC. It consists of the
|
|
* standard 8 colors, folowed by their bright counterparts. There are
|
|
* exceptions, these are listed below. Bright black doesn't mean very
|
|
* much, so it is used as the "default" foreground color of the screen.
|
|
*/
|
|
#define CLR_BLACK 0
|
|
#define CLR_RED 1
|
|
#define CLR_GREEN 2
|
|
#define CLR_BROWN 3 /* on IBM, low-intensity yellow is brown */
|
|
#define CLR_BLUE 4
|
|
#define CLR_MAGENTA 5
|
|
#define CLR_CYAN 6
|
|
#define CLR_GRAY 7 /* low-intensity white */
|
|
#define NO_COLOR 8
|
|
#define CLR_ORANGE 9
|
|
#define CLR_BRIGHT_GREEN 10
|
|
#define CLR_YELLOW 11
|
|
#define CLR_BRIGHT_BLUE 12
|
|
#define CLR_BRIGHT_MAGENTA 13
|
|
#define CLR_BRIGHT_CYAN 14
|
|
#define CLR_WHITE 15
|
|
#define CLR_MAX 16
|
|
|
|
/* The "half-way" point for tty based color systems. This is used in */
|
|
/* the tty color setup code. (IMHO, it should be removed - dean). */
|
|
#define BRIGHT 8
|
|
|
|
/* these can be configured */
|
|
#define HI_OBJ CLR_MAGENTA
|
|
#define HI_METAL CLR_CYAN
|
|
#define HI_COPPER CLR_YELLOW
|
|
#define HI_SILVER CLR_GRAY
|
|
#define HI_GOLD CLR_YELLOW
|
|
#define HI_LEATHER CLR_BROWN
|
|
#define HI_CLOTH CLR_BROWN
|
|
#define HI_ORGANIC CLR_BROWN
|
|
#define HI_WOOD CLR_BROWN
|
|
#define HI_PAPER CLR_WHITE
|
|
#define HI_GLASS CLR_BRIGHT_CYAN
|
|
#define HI_MINERAL CLR_GRAY
|
|
#define DRAGON_SILVER CLR_BRIGHT_CYAN
|
|
#define HI_ZAP CLR_BRIGHT_BLUE
|
|
|
|
struct menucoloring {
|
|
struct nhregex *match;
|
|
char *origstr;
|
|
int color, attr;
|
|
struct menucoloring *next;
|
|
};
|
|
|
|
#endif /* COLOR_H */
|