NetHack Patch Database v0.27

323 patches

Menucolors

NameMenucolors v1.5
Rating90%
AuthorPasi Kallinen
ForNetHack 3.4.3
DescriptionAllows the user to define in what color menus are shown.
 This patch allows the user to define in what color menus are shown. For example, putting

OPTIONS=menucolors
MENUCOLOR=" blessed "=green
MENUCOLOR=" holy "=green
MENUCOLOR=" cursed "=red
MENUCOLOR=" unholy "=red
MENUCOLOR=" cursed .* (being worn)"=orange&underline

in the configuration file makes all known blessed items show up in green, all cursed items show up in red and all cursed worn items show up in orange and underlined when viewing inventory.

If you have regex.h but it is not GNU (e.g. DJGPP, *BSD), uncomment #define MENU_COLOR_REGEX_POSIX in include/config.h

If you do not have regex.h, comment #define MENU_COLOR_REGEX out from include/config.h and replace the MENUCOLOR lines in your config file with these:

MENUCOLOR="* blessed *"=green
MENUCOLOR="* holy *"=green
MENUCOLOR="* cursed *"=red
MENUCOLOR="* unholy *"=red
MENUCOLOR="* cursed * (being worn)"=orange&underline


Colors: black, red, green, brown, blue, magenta, cyan, gray, orange, lightgreen, yellow, lightblue, lightmagenta, lightcyan, white.
Attributes: none, bold, dim, underline, blink, inverse.

Note that the terminal is free to interpret the attributes however it wants.

TTY or Windows GUI only, thought the Windows GUI part doesn't obey attributes.
Downloadhttp://bilious.alt.org/~paxed/nethack/nh343-menucolor.diff (19.6 Kb)
AddedJanuary 30, 2005 16:45
ChangedSeptember 23, 2006 18:49
Submit an update to this patch

8 Comments

5AmrDecember 30, 2010 17:21
Great patch! If you want to download NetHack with this patch and Statuscolors 1.2 already applied, just go to http://helmpcb.com/?p=203.[Quote]
5scummosJune 16, 2010 22:48
NetHack is kind of unplayable without this patch. :][Quote]
 paxedApril 11, 2010 09:37
Hadley wrote:

Very useful, but has a crash bug on some systems due to an uninitialized variable. After patching, go into src/options.c, find the line:
struct percent_color_option *percent_color_option =
(struct percent_color_option *)alloc(sizeof(*percent_color_option));

and, add in right after,
percent_color_option->next = NULL;


Not menucolors, you're thinking of statuscolors:
http://bilious.alt.org/?142[Quote]
3HadleyApril 11, 2010 06:21
Very useful, but has a crash bug on some systems due to an uninitialized variable. After patching, go into src/options.c, find the line:
struct percent_color_option *percent_color_option =
(struct percent_color_option *)alloc(sizeof(*percent_color_option));

and, add in right after,
percent_color_option->next = NULL;[Quote]
5DHowettJune 27, 2009 05:34
This patch is an absolute necessity. I love it![Quote]
5DargorSeptember 13, 2008 14:46
This, with the hpmon patch, is totally awesome. A must have ![Quote]
5bobbensJuly 15, 2006 13:42
definately one of the primordial patches along with hpmon[Quote]
4tweekAugust 31, 2005 01:38
This, along with Statuscolors, are the patches you *need* to play this game. The
rest are optional. This patch will point out cursed items, wands of
cancellation, etc. ... I can't rate whether it works, or could easily be added
to the next release, but I[Quote]

Add a comment

Name ()required
Rating (0 is worst, 5 is best) 
Commentrequired
You can use up to 1024 characters.
Only supported tag is [url]clickable_link[/url].

You will need to answer the following question correctly: What symbol represents a grave?