This provides the core support needed for status field highlighting.
This patch doesn't actually perform status field highlighting for any port,
but provides the core hooks for doing so.
The syntax is:
OPTIONS=hilite_status:{fieldname}/{threshold}/{below}/{above}
where {fieldname} is the name of a status field.
{threshold} is the value used as the threshold to trigger a display
change. It can also be set to "updown" to trigger
a display change whenever it rises or whenever it falls.
If you end the threshold value with %, then it signifies
that you want to trigger the display change based on the
percentage of maximum.
{below}, {above}
are the color or display attribute that you want to use when
the field value is underneath the threshold. Supported display
fields are: normal, inverse, bold, black, red, green,
brown, blue, magenta, cyan, gray, orange,
bright-green, yellow, bright-blue, bright-magenta,
bright-cyan, or white.
Valid field names are:
alignment, armor-class, carrying-capacity,
charisma, condition, constitution, dexterity,
dungeon-level, experience-level, experience,
gold, HD, hitpoints-max, hitpoints, hunger,
intelligence, power-max, power, score,
strength, time, title, wisdom
Refer to window.doc for details. Guidebook updates to come later.
This directory contains the windowing code written for GnomeHack. The NetHack devteam is in the process of making it part of the normal distribution. It should be noted that this is still work in progress and that there are still problems with this code. So use at your own risk. Of course any contributions, especially bug fixes, are more than welcome! These files are based on the files from GnomeHack 1.0.5 by Erik Andersen. Some files have been renamed to fit into 8.3 name constraints (yuk!). These are: GnomeHack.h gnomeprv.h GnomeHackAskStringDialog.c gnaskstr.c GnomeHackAskStringDialog.h gnaskstr.h GnomeHackBind.c gnbind.c GnomeHackBind.h gnbind.h GnomeHackGlyph.c gnglyph.c GnomeHackGlyph.h gnglyph.h GnomeHackMainWindow.c gnmain.c GnomeHackMainWindow.h gnmain.h GnomeHackMapWindow.c gnmap.c GnomeHackMapWindow.h gnmap.h GnomeHackMenuWindow.c gnmenu.c GnomeHackMenuWindow.h gnmenu.h GnomeHackMessageWindow.c gnmesg.c GnomeHackMessageWindow.h gnmesg.h GnomeHackPlayerSelDialog.c gnplayer.c GnomeHackPlayerSelDialog.h gnplayer.h GnomeHackSettings.c gnopts.c GnomeHackSettings.h gnopts.h GnomeHackSignals.c gnsignal.c GnomeHackSignals.h gnsignal.h GnomeHackStatusWindow.c gnstatus.c GnomeHackStatusWindow.h gnstatus.h GnomeHackTextWindow.c gntext.c GnomeHackTextWindow.h gntext.h GnomeHackYesNoDialog.c gnyesno.c GnomeHackYesNoDialog.h gnyesno.h Other files have been removed because we don't or can't use them (yet). Makefile.am Makefile.in gnomehack.desktop gnomehack.desktop.in NetHack currently doesn't use autoconf, so the setup for that has not made the translation. Note: All loss in style, elegance, and readability is entirely our fault and not Erik's.