diff -Nurdp nethack-3.4.3/include/color.h nethack-3.4.3.statuscolors/include/color.h
--- nethack-3.4.3/include/color.h 2003-12-07 15:39:13.000000000 -0800
+++ nethack-3.4.3.statuscolors/include/color.h 2006-11-11 19:17:57.000000000 -0800
@@ -49,4 +49,23 @@
#define DRAGON_SILVER CLR_BRIGHT_CYAN
#define HI_ZAP CLR_BRIGHT_BLUE
+#ifdef STATUS_COLORS
+struct color_option {
+ int color;
+ int attr_bits;
+};
+
+struct percent_color_option {
+ int percentage;
+ struct color_option color_option;
+ const struct percent_color_option *next;
+};
+
+struct text_color_option {
+ const char *text;
+ struct color_option color_option;
+ const struct text_color_option *next;
+};
+#endif
+
#endif /* COLOR_H */
diff -Nurdp nethack-3.4.3/include/config.h nethack-3.4.3.statuscolors/include/config.h
--- nethack-3.4.3/include/config.h 2003-12-07 15:39:13.000000000 -0800
+++ nethack-3.4.3.statuscolors/include/config.h 2006-11-11 19:17:57.000000000 -0800
@@ -348,6 +348,8 @@ typedef unsigned char uchar;
* bugs left here.
*/
+#define STATUS_COLORS
+
/*#define GOLDOBJ */ /* Gold is kept on obj chains - Helge Hafting */
/*#define AUTOPICKUP_EXCEPTIONS */ /* exceptions to autopickup */
diff -Nurdp nethack-3.4.3/include/flag.h nethack-3.4.3.statuscolors/include/flag.h
--- nethack-3.4.3/include/flag.h 2003-12-07 15:39:13.000000000 -0800
+++ nethack-3.4.3.statuscolors/include/flag.h 2006-11-11 19:17:57.000000000 -0800
@@ -183,6 +183,9 @@ struct instance_flags {
char prevmsg_window; /* type of old message window to use */
boolean extmenu; /* extended commands use menu interface */
#endif
+#if defined(STATUS_COLORS) && defined(TEXTCOLOR)
+ boolean use_status_colors; /* use color in status line; only if wc_color */
+#endif
#ifdef MFLOPPY
boolean checkspace; /* check disk space before writing files */
/* (in iflags to allow restore after moving
diff -Nurdp nethack-3.4.3/README.statuscolors nethack-3.4.3.statuscolors/README.statuscolors
--- nethack-3.4.3/README.statuscolors 1969-12-31 16:00:00.000000000 -0800
+++ nethack-3.4.3.statuscolors/README.statuscolors 2006-11-11 20:10:53.000000000 -0800
@@ -0,0 +1,62 @@
+Statuscolors is a patch for Nethack (version 3.4.3) that attempts to generalize
+the hpmon patch to be more like the menucolor patch. As of v1.2, the
+statuscolors patch may be applied after the menucolor patch (but not before
+it). Unlike menucolor, it does not use regexps. Instead, it provides the
+following options:
+
+To enable statuscolors:
+ OPTIONS=statuscolors
+
+To specify statuscolor options, write:
+ STATUSCOLOR=