option help
I stated out by changing dat/opthelp to stop shouting the boolean defaults: [TRUE] -> [True], [FALSE] -> [False]. I ended up doing a partical reconcilliation between ?g (dynamic list of options) and ?h (dat/opthelp). There were several inapplicable options in the dynamic list, so this changes option_help() to avoid those. I barely glanced at the compound options so they may not sync up.
This commit is contained in:
+102
-74
@@ -2,122 +2,150 @@ Boolean options not under specific compile flags (with default values in []):
|
|||||||
(You can learn which options exist in your version by checking your current
|
(You can learn which options exist in your version by checking your current
|
||||||
option setting, which is reached via the 'O' command.)
|
option setting, which is reached via the 'O' command.)
|
||||||
|
|
||||||
acoustics can your character hear anything [TRUE]
|
acoustics can your character hear anything [True]
|
||||||
autodescribe describe the terrain under cursor [FALSE]
|
autodescribe describe the terrain under cursor [False]
|
||||||
autodig dig if moving and wielding digging tool [FALSE]
|
autodig dig if moving and wielding digging tool [False]
|
||||||
autoopen walking into a door attempts to open it [TRUE]
|
autoopen walking into a door attempts to open it [True]
|
||||||
autopickup automatically pick up objects you move over [TRUE]
|
autopickup automatically pick up objects you move over [True]
|
||||||
autoquiver when firing with an empty quiver, select some [FALSE]
|
autoquiver when firing with an empty quiver, select some [False]
|
||||||
suitable inventory weapon to fill the quiver
|
suitable inventory weapon to fill the quiver
|
||||||
autounlock when opening a locked door or looting a locked [TRUE]
|
autounlock when opening a locked door or looting a locked [True]
|
||||||
container while carrying a key, offer to use it
|
container while carrying a key, offer to use it
|
||||||
BIOS allow the use of IBM ROM BIOS calls [FALSE]
|
BIOS allow the use of IBM ROM BIOS calls [False]
|
||||||
blind your character is permanently blind [FALSE]
|
blind your character is permanently blind [False]
|
||||||
bones allow loading bones files [TRUE]
|
bones allow loading bones files [True]
|
||||||
clicklook look at map by clicking right mouse button [FALSE]
|
clicklook look at map by clicking right mouse button [False]
|
||||||
cmdassist give help for errors on direction & other commands [TRUE]
|
cmdassist give help for errors on direction & other commands [True]
|
||||||
confirm ask before hitting tame or peaceful monsters [TRUE]
|
confirm ask before hitting tame or peaceful monsters [True]
|
||||||
dark_room show floor not in sight in different color [TRUE]
|
dark_room show floor not in sight in different color [True]
|
||||||
eight_bit_tty send 8-bit characters straight to terminal [FALSE]
|
eight_bit_tty send 8-bit characters straight to terminal [False]
|
||||||
extmenu tty, curses: use menu for # (extended commands) [FALSE]
|
extmenu tty, curses: use menu for # (extended commands) [False]
|
||||||
X11: menu has all commands (T) or traditional subset (F)
|
X11: menu has all commands (T) or traditional subset (F)
|
||||||
fixinv try to retain the same letter for the same object [TRUE]
|
female deprecated; use compound option gender:female [False]
|
||||||
force_invmenu commands asking for inventory item show a menu [FALSE]
|
fixinv try to retain the same letter for the same object [True]
|
||||||
goldX when filtering objects by bless/curse state, [FALSE]
|
force_invmenu commands asking for inventory item show a menu [False]
|
||||||
|
goldX when filtering objects by bless/curse state, [False]
|
||||||
whether to classify gold as X (unknown) or U (uncursed)
|
whether to classify gold as X (unknown) or U (uncursed)
|
||||||
help print all available info when using the / command [TRUE]
|
help print all available info when using the / command [True]
|
||||||
herecmd_menu show menu of some possible commands when clicking
|
herecmd_menu show menu of some possible commands when clicking
|
||||||
on yourself or next to you with mouse [FALSE]
|
on yourself or next to you with mouse [False]
|
||||||
ignintr ignore interrupt signal, including breaks [FALSE]
|
ignintr ignore interrupt signal, including breaks [False]
|
||||||
implicit_uncursed omit "uncursed" from inventory, if possible [TRUE]
|
implicit_uncursed omit "uncursed" from inventory, if possible [True]
|
||||||
legacy print introductory message [TRUE]
|
legacy print introductory message [True]
|
||||||
lit_corridor show a dark corridor as lit if in sight [FALSE]
|
lit_corridor show a dark corridor as lit if in sight [False]
|
||||||
lootabc use a/b/c rather than o/i/b when looting [FALSE]
|
lootabc use a/b/c rather than o/i/b when looting [False]
|
||||||
mail enable the mail daemon [TRUE]
|
mail enable the mail daemon [True]
|
||||||
mention_decor give feedback when walking across stairs, altars, [FALSE]
|
mention_decor give feedback when walking across stairs, altars, [False]
|
||||||
fountains, and such even when not obscured by objects
|
fountains, and such even when not obscured by objects
|
||||||
mention_walls give feedback when walking against a wall [FALSE]
|
mention_walls give feedback when walking against a wall [False]
|
||||||
menu_objsyms show object symbols in menus if it is selectable [FALSE]
|
menu_objsyms show object symbols in menus if it is selectable [False]
|
||||||
menu_overlay overlay menus on the screen and align to right [TRUE]
|
menu_overlay overlay menus on the screen and align to right [True]
|
||||||
nudist start your character without armor [FALSE]
|
menucolors enable MENUCOLOR pattern matching to highlight [False]
|
||||||
null allow nulls to be sent to your terminal [TRUE]
|
lines in object menus like inventory; might highlight with
|
||||||
|
bold, inverse, &c even when color is unavailable or toggled off
|
||||||
|
nudist start your character without armor [False]
|
||||||
|
null allow nulls to be sent to your terminal [True]
|
||||||
try turning this option off (forcing NetHack to use its own
|
try turning this option off (forcing NetHack to use its own
|
||||||
delay code) if moving objects seem to teleport across rooms
|
delay code) if moving objects seem to teleport across rooms
|
||||||
perm_invent keep inventory in a permanent window [FALSE]
|
perm_invent keep inventory in a permanent window [False]
|
||||||
pickup_thrown override pickup_types for thrown objects [TRUE]
|
pickup_thrown override pickup_types for thrown objects [True]
|
||||||
pushweapon when wielding a new weapon, put your previously [FALSE]
|
pushweapon when wielding a new weapon, put your previously [False]
|
||||||
wielded weapon into the secondary weapon slot
|
wielded weapon into the secondary weapon slot
|
||||||
quick_farsight usually skip the chance to browse the map when [FALSE]
|
quick_farsight usually skip the chance to browse the map when [False]
|
||||||
randomly triggered clairvoyance takes place
|
randomly triggered clairvoyance takes place
|
||||||
rawio allow the use of raw I/O [FALSE]
|
rawio allow the use of raw I/O [False]
|
||||||
rest_on_space count the space bar as a rest character [FALSE]
|
rest_on_space count the space bar as a rest character [False]
|
||||||
safe_pet prevent you from (knowingly) attacking your pet(s) [TRUE]
|
safe_pet prevent you from (knowingly) attacking your pet(s) [True]
|
||||||
safe_wait require use of 'm' prefix before '.' or 's' to [TRUE]
|
safe_wait require use of 'm' prefix before '.' or 's' to [True]
|
||||||
wait or search when adjacent to a hostile monster
|
wait or search when adjacent to a hostile monster
|
||||||
sanity_check perform data sanity checks [FALSE]
|
sanity_check perform data sanity checks [False]
|
||||||
showexp display your accumulated experience points [FALSE]
|
showexp display your accumulated experience points [False]
|
||||||
showrace show yourself by your race rather than by role [FALSE]
|
showrace show yourself by your race rather than by role [False]
|
||||||
silent don't use your terminal's bell sound [TRUE]
|
silent don't use your terminal's bell sound [True]
|
||||||
sortpack group similar kinds of objects in inventory [TRUE]
|
sortpack group similar kinds of objects in inventory [True]
|
||||||
sparkle display sparkly effect for resisted magical [TRUE]
|
sparkle display sparkly effect for resisted magical [True]
|
||||||
attacks (e.g. fire attack on fire-resistant monster)
|
attacks (e.g. fire attack on fire-resistant monster)
|
||||||
standout use standout mode for --More-- on messages [FALSE]
|
standout use standout mode for --More-- on messages [False]
|
||||||
status_updates update the status lines [TRUE]
|
status_updates update the status lines [True]
|
||||||
time display elapsed game time, in moves [FALSE]
|
time display elapsed game time, in moves [False]
|
||||||
tombstone print tombstone when you die [TRUE]
|
tombstone print tombstone when you die [True]
|
||||||
toptenwin print topten in a window rather than stdout [FALSE]
|
toptenwin print topten in a window rather than stdout [False]
|
||||||
travel enables travelling via mouse click if supported; [TRUE]
|
travel enables travelling via mouse click if supported; [True]
|
||||||
can be toggled off to prevent mouse clicks on the map from
|
can be toggled off to prevent mouse clicks on the map from
|
||||||
attempting to move the hero; does not affect travel via '_'
|
attempting to move the hero; does not affect travel via '_'
|
||||||
use_darkgray use bold black instead of blue for black glyphs. [TRUE]
|
use_darkgray use bold black instead of blue for black glyphs. [True]
|
||||||
use_inverse display detected monsters in highlighted manner [FALSE]
|
use_inverse display detected monsters in highlighted manner [False]
|
||||||
verbose print more commentary during the game [TRUE]
|
verbose print more commentary during the game [True]
|
||||||
whatis_menu show menu when getting a map location [FALSE]
|
whatis_menu show menu when getting a map location [False]
|
||||||
whatis_moveskip skip same glyphs when getting a map location [FALSE]
|
whatis_moveskip skip same glyphs when getting a map location [False]
|
||||||
|
|
||||||
|
|
||||||
There are further boolean options controlled by compilation flags.
|
There are further boolean options controlled by compilation flags.
|
||||||
|
|
||||||
Boolean option if INSURANCE was set at compile time:
|
Boolean option if INSURANCE was set at compile time:
|
||||||
checkpoint save game state after each level change, for [TRUE]
|
checkpoint save game state after each level change, for [True]
|
||||||
possible recovery after program crash
|
possible recovery after program crash
|
||||||
|
|
||||||
Boolean option if NEWS was set at compile time:
|
Boolean option if NEWS was set at compile time:
|
||||||
news print any news from game administrator on startup [TRUE]
|
news print any news from game administrator on startup [True]
|
||||||
|
|
||||||
Boolean option if SCORE_ON_BOTL was set at compile time:
|
Boolean option if SCORE_ON_BOTL was set at compile time:
|
||||||
showscore display your approximate accumulated score [FALSE]
|
showscore display your approximate accumulated score [False]
|
||||||
|
|
||||||
Boolean options if TEXTCOLOR was set at compile time:
|
Boolean options if TEXTCOLOR was set at compile time:
|
||||||
color use different colors for objects on screen [TRUE for micros]
|
color use different colors for objects on screen [True for micros]
|
||||||
hilite_pet display pets in a highlighted manner [FALSE]
|
hilite_pet display pets in a highlighted manner [False]
|
||||||
hilite_pile display item piles in a highlighted manner [FALSE]
|
hilite_pile display item piles in a highlighted manner [False]
|
||||||
|
|
||||||
Boolean option if TIMED_DELAY was set at compile time (tty interface only):
|
Boolean option if TIMED_DELAY was set at compile time (tty interface only):
|
||||||
timed_delay on unix and VMS, use a timer instead of sending [TRUE]
|
timed_delay on unix and VMS, use a timer instead of sending [True]
|
||||||
extra screen output when attempting to pause for
|
extra screen output when attempting to pause for
|
||||||
display effect. on MSDOS without the termcap
|
display effect. on MSDOS without the termcap
|
||||||
lib, whether or not to pause for visual effect.
|
lib, whether or not to pause for visual effect.
|
||||||
|
|
||||||
Boolean option for Amiga, or for others if ALTMETA was set at compile time:
|
Boolean option for Amiga, or for others if ALTMETA was set at compile time:
|
||||||
altmeta For Amiga, treat Alt+key as Meta+key. [TRUE]
|
altmeta For Amiga, treat Alt+key as Meta+key. [True]
|
||||||
altmeta For unix and VMS, treat two character sequence
|
altmeta For unix and VMS, treat two character sequence
|
||||||
"ESC c" as M-c (Meta+c, 8th bit set) when nethack [FALSE]
|
"ESC c" as M-c (Meta+c, 8th bit set) when nethack [False]
|
||||||
obtains a command from player's keyboard.
|
obtains a command from player's keyboard.
|
||||||
|
|
||||||
Boolean option if USE_TILES was set at compile time (MSDOS protected mode):
|
Boolean option if USE_TILES was set at compile time (MSDOS protected mode):
|
||||||
preload_tiles control whether tiles get pre-loaded into RAM at [TRUE]
|
preload_tiles control whether tiles get pre-loaded into RAM at [True]
|
||||||
the start of the game. Doing so enhances performance
|
the start of the game. Doing so enhances performance
|
||||||
of the tile graphics, but uses more memory.
|
of the tile graphics, but uses more memory.
|
||||||
|
|
||||||
Boolean option if TTY_TILES_ESCCODES was set at compile time (tty only):
|
Boolean option if TTY_TILES_ESCCODES was set at compile time (tty only):
|
||||||
vt_tiledata insert extra data escape code markers into output [FALSE]
|
vt_tiledata insert extra data escape code markers into output [False]
|
||||||
|
|
||||||
Boolean option if TTY_SOUND_ESCCODES was set at compile time (tty only):
|
Boolean option if TTY_SOUND_ESCCODES was set at compile time (tty only):
|
||||||
vt_sounddata insert sound data escape code markers into output [FALSE]
|
vt_sounddata insert sound data escape code markers into output [False]
|
||||||
|
|
||||||
Any Boolean option can be negated by prefixing it with a '!' or 'no'.
|
Boolean options which may be available depending upon which interfaces
|
||||||
|
the program has been built to support. If it supports multiple such,
|
||||||
|
some of these may show as available for setting but not do anything if
|
||||||
|
you happen to be using a different interface than the one(s) they're for:
|
||||||
|
ascii_map show map as text, forces tiles_map Off; Qt, X11
|
||||||
|
guicolor curses
|
||||||
|
hitpointbar curses, tty, Windows GUI if statushilites enabled;
|
||||||
|
Qt without statushilites; X11 if 'fancy_status' disabled
|
||||||
|
(via X application defaults) and statushilities enabled
|
||||||
|
popup_dialog curses, Qt, Windows GUI
|
||||||
|
selectsaved tty (Qt and Windows GUI do this unconditionally)
|
||||||
|
splash_screen curses, Qt, Windows GUI
|
||||||
|
tiled_map show map as tiles, forces ascii_map Off; Qt, X11
|
||||||
|
|
||||||
|
Boolean options available when running in debug mode (aka wizard mode):
|
||||||
|
menu_tab_sep menu formatting--do not touch
|
||||||
|
monpolycontrol have player choose shape-changing monsters' new shapes
|
||||||
|
travel_debug not implemented?
|
||||||
|
wizweight include item weights in inventory display
|
||||||
|
|
||||||
|
Any Boolean option can be set to True by including it among options being
|
||||||
|
set, or negated (set to False) by prefixing its name with a '!' or 'no'.
|
||||||
|
Alternatively, the compound option syntax can be used: 'optname:true' and
|
||||||
|
'optname:false'.
|
||||||
|
|
||||||
|
- - - - -
|
||||||
|
|
||||||
Compound options are written as option_name:option_value.
|
Compound options are written as option_name:option_value.
|
||||||
|
|
||||||
@@ -131,8 +159,8 @@ disclose the types of information you want [ni na nv ng nc no]
|
|||||||
'n' prompt with default "no", 'y' prompt with default "yes",
|
'n' prompt with default "no", 'y' prompt with default "yes",
|
||||||
'a' prompt to select sorting order (for suffix 'v' only);
|
'a' prompt to select sorting order (for suffix 'v' only);
|
||||||
suffix: 'i' inventory, 'a' attributes, 'v' vanquished
|
suffix: 'i' inventory, 'a' attributes, 'v' vanquished
|
||||||
monsters, 'g' genocided and extinct monsters, 'c' conduct,
|
monsters, 'g' genocided and extinct monsters, 'c' conduct
|
||||||
'o' dungeon overview)
|
and achievements, 'o' dungeon overview)
|
||||||
fruit the name of a fruit you enjoy eating [slime mold]
|
fruit the name of a fruit you enjoy eating [slime mold]
|
||||||
(basically a whimsy which NetHack uses from time to time).
|
(basically a whimsy which NetHack uses from time to time).
|
||||||
hilite_status specifies a rule for highlighting a status field []
|
hilite_status specifies a rule for highlighting a status field []
|
||||||
@@ -298,7 +326,7 @@ statuslines whether to use expanded (3) or condensed (2) status [2]
|
|||||||
startup; also unlike tty and curses, 2 is recommended over 3)
|
startup; also unlike tty and curses, 2 is recommended over 3)
|
||||||
windowtype windowing system to be used [depends on operating system and
|
windowtype windowing system to be used [depends on operating system and
|
||||||
compile-time setup] if more than one choice is available.
|
compile-time setup] if more than one choice is available.
|
||||||
Most instances of the program support only one window-type;
|
Some instances of the program support only one window-type;
|
||||||
when that is the case, you don't need to specify anything.
|
when that is the case, you don't need to specify anything.
|
||||||
The list of supported window-types in your program can be
|
The list of supported window-types in your program can be
|
||||||
seen while the program is running by using the #version
|
seen while the program is running by using the #version
|
||||||
|
|||||||
@@ -228,8 +228,10 @@ pfx_##a,
|
|||||||
#endif
|
#endif
|
||||||
NHOPTB(implicit_uncursed, 0, opt_out, set_in_game, On, Yes, No, No,
|
NHOPTB(implicit_uncursed, 0, opt_out, set_in_game, On, Yes, No, No,
|
||||||
NoAlias, &flags.implicit_uncursed)
|
NoAlias, &flags.implicit_uncursed)
|
||||||
|
#if 0 /* obsolete - pre-OSX Mac */
|
||||||
NHOPTB(large_font, 0, opt_in, set_in_config, Off, Yes, No, No, NoAlias,
|
NHOPTB(large_font, 0, opt_in, set_in_config, Off, Yes, No, No, NoAlias,
|
||||||
&iflags.obsolete)
|
&iflags.obsolete)
|
||||||
|
#endif
|
||||||
NHOPTB(legacy, 0, opt_out, set_in_config, On, Yes, No, No, NoAlias,
|
NHOPTB(legacy, 0, opt_out, set_in_config, On, Yes, No, No, NoAlias,
|
||||||
&flags.legacy)
|
&flags.legacy)
|
||||||
NHOPTB(lit_corridor, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
|
NHOPTB(lit_corridor, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
|
||||||
|
|||||||
+17
-10
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.7 options.c $NHDT-Date: 1607692223 2020/12/11 13:10:23 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.486 $ */
|
/* NetHack 3.7 options.c $NHDT-Date: 1608606126 2020/12/22 03:02:06 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.489 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Michael Allison, 2008. */
|
/*-Copyright (c) Michael Allison, 2008. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -8226,6 +8226,7 @@ void
|
|||||||
option_help()
|
option_help()
|
||||||
{
|
{
|
||||||
char buf[BUFSZ], buf2[BUFSZ];
|
char buf[BUFSZ], buf2[BUFSZ];
|
||||||
|
const char *optname;
|
||||||
register int i;
|
register int i;
|
||||||
winid datawin;
|
winid datawin;
|
||||||
|
|
||||||
@@ -8237,22 +8238,28 @@ option_help()
|
|||||||
|
|
||||||
/* Boolean options */
|
/* Boolean options */
|
||||||
for (i = 0; allopt[i].name; i++) {
|
for (i = 0; allopt[i].name; i++) {
|
||||||
if (allopt[i].addr) {
|
if ((allopt[i].opttyp != BoolOpt || !allopt[i].addr)
|
||||||
if (allopt[i].addr == &iflags.sanity_check && !wizard)
|
|| (allopt[i].setwhere == set_wizonly && !wizard))
|
||||||
continue;
|
continue;
|
||||||
if (allopt[i].addr == &iflags.menu_tab_sep && !wizard)
|
optname = allopt[i].name;
|
||||||
continue;
|
if ((is_wc_option(optname) && !wc_supported(optname))
|
||||||
next_opt(datawin, allopt[i].name);
|
|| (is_wc2_option(optname) && !wc2_supported(optname)))
|
||||||
}
|
continue;
|
||||||
|
next_opt(datawin, optname);
|
||||||
}
|
}
|
||||||
next_opt(datawin, "");
|
next_opt(datawin, "");
|
||||||
|
|
||||||
/* Compound options */
|
/* Compound options */
|
||||||
putstr(datawin, 0, "Compound options:");
|
putstr(datawin, 0, "Compound options:");
|
||||||
for (i = 0; allopt[i].name; i++) {
|
for (i = 0; allopt[i].name; i++) {
|
||||||
if (allopt[i].opttyp != CompOpt) /* skip booleans */
|
if (allopt[i].opttyp != CompOpt
|
||||||
|
|| (allopt[i].setwhere == set_wizonly && !wizard))
|
||||||
continue;
|
continue;
|
||||||
Sprintf(buf2, "`%s'", allopt[i].name);
|
optname = allopt[i].name;
|
||||||
|
if ((is_wc_option(optname) && !wc_supported(optname))
|
||||||
|
|| (is_wc2_option(optname) && !wc2_supported(optname)))
|
||||||
|
continue;
|
||||||
|
Sprintf(buf2, "`%s'", optname);
|
||||||
Sprintf(buf, "%-20s - %s%c", buf2, allopt[i].descr,
|
Sprintf(buf, "%-20s - %s%c", buf2, allopt[i].descr,
|
||||||
allopt[i + 1].name ? ',' : '.');
|
allopt[i + 1].name ? ',' : '.');
|
||||||
putstr(datawin, 0, buf);
|
putstr(datawin, 0, buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user