NetHack Patch Database v0.27

323 patches

Color HP Monitor

NameColor HP Monitor v1.0
AuthorRalph Churchill
ForNetHack 3.4.3
DescriptionChange the color of your HP depending on how much HP you have left.
 If your Hp is lower than maxhp but more than 2/3 of max, it is shown green. If it is less than that, but more than 1/3 of max, it is yellow. If it's less than 1/3 of max, the color is red. And with values less than 1/10 of max, it is highlighted, blinking or whatever your screen shows with the ATR_BLINK attribute.

TTY only.

Remember to add #define HPMON in include/config.h
Download (2 Kb)
AddedJanuary 30, 2005 18:39
ChangedOctober 20, 2012 12:57
Submit an update to this patch


5nonniApril 17, 2012 23:39
Great Patch.
But I really missed food/weight coloring, and the link to Madox's patch is broken, so I altered the hpmon patch myself and added colors for food/weight statues.

The color sheme is as follows:
Hungry - Yellow
Weak - Orange
Fainting/Fainted - Red

Burdened/Tested/.. - Magenta

It should not "bleed" colors like Madox's patch allegedly did ;).

You can get it at
Use patches/hpmon_addon_vanilla.diff for vanilla nethack (after applying hpmon.diff)
there is also a version for a nethack with the NAO diff applied.[Quote]
5paxedJanuary 04, 2009 17:23
While this patch is excellent, it relies on some rather specific behaviour of the tty windowing routines; namely that only changed parts of the status lines are drawn. The patch first draws the status line, then changes color, and draws it again.

This works as long as the patch doesn't draw any colors for the parts that might get drawn beyond the last column, such as burden or hunger. This is why madox's patch causes "bleeding" colors.[Quote]
5DargorSeptember 13, 2008 23:59
madox, there is a bug with your diff which cause the status line to be all yellow while burdened (maybe other burden states as well). maybe because you're using the same variable that original patch, hpcolor ? I don't know the nethack codebase enough to be sure, so I can't fix it myself.

Was on vanilla nethack 3.4.3 with hpmon, your patch and menucolors.[Quote]
5person-aSeptember 09, 2008 23:14
I'm compiling just for this!! This was the only thing I liked in the GUI version.[Quote]
5LokathorAugust 30, 2008 01:49
The added coloring of food/weight status is awesome.[Quote]
5madoxAugust 10, 2008 22:46
I updated this patch to display hunger and burden in shades of yellow/orange/red. Is it better to submit an update to this patch or create a new one which will conflict with this one?

In the meantime, you can get a diff from Apply this diff after applying hpmon.diff[Quote]
5AnMasterApril 07, 2008 13:21
ai0 wrote:

The most valuable patch. I think it should be expanded to display Pw, Hungry, Burdened etc.

I agree with that. Hungry/weak/faint is most important for me.[Quote]
5ai0February 07, 2008 22:48
The most valuable patch. I think it should be expanded to display Pw, Hungry, Burdened etc.[Quote]
5bobbensJuly 15, 2006 13:43
hpmon is BASIC! it definately saves my life all the time[Quote]
5Andrea ReinaMarch 20, 2006 23:35
Love it, made a tiny little change before applying it: changed the blinking to
happen at HPMAX/7, which is the point you can #(spoiler).

Looking for a way to actually make it blink, my terminal just shows it as a
lighter red -- tty, no windowing system used.[Quote]
5ClumsyMarch 16, 2006 11:16
A must have for absent-minded adventurers![Quote]

Add a comment

Name ()required
Rating (0 is worst, 5 is best) 
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 floating eye?