X11: TTY-style status lines
Set X resource NetHack*fancy_status: False to enable the TTY-style status lines. Default is the fancy status. This patch is somewhat unfinished - even though the TTY-style status allow for status hilites, the colors don't work correctly yet. Also changes the fancy status to use the windowport notification code.
This commit is contained in:
10
src/botl.c
10
src/botl.c
@@ -1248,6 +1248,16 @@ static struct fieldid_t {
|
||||
static const char threshold_value[] = "hilite_status threshold ",
|
||||
is_out_of_range[] = " is out of range";
|
||||
|
||||
|
||||
const char *
|
||||
bl_idx_to_fldname(idx)
|
||||
int idx;
|
||||
{
|
||||
if (idx >= 0 && idx < MAXBLSTATS)
|
||||
return initblstats[idx].fldname;
|
||||
return (const char *) 0;
|
||||
}
|
||||
|
||||
/* field name to bottom line index */
|
||||
STATIC_OVL enum statusfields
|
||||
fldname_to_bl_indx(name)
|
||||
|
||||
Reference in New Issue
Block a user