Show and change option settings.
Default key is \(oqO\(cq.
Precede with the \(oqm\(cq prefix to show advanced options.
-.lp "#optionsfull"
+.lp #optionsfull
Show advanced game option settings.
+No default key.
+Precede with the \(oqm\(cq prefix to execute the simpler options command.
+(Mainly useful if you use \f(CRBINDING=O:optionsfull\fP to switch
+\(oq\f(CRO\fP\(cq from simple options back to traditional advanced options.)
.lp #overview
Display information you've discovered about the dungeon.
Any visited
%.lp
\item[\tb{\#optionsfull}]
Show advanced game option settings.
+No default key.
+Precede with the `{\tt m}' prefix to execute the simpler options command.
+(Mainly useful if you use {\tt BINDING=O:optionsfull} to switch
+`{\tt O}' from simple options back to traditional advanced options.)
%.lp
\item[\tb{\#overview}]
Display information you've discovered about the dungeon. Any visited
dosacrifice, AUTOCOMPLETE | CMD_M_PREFIX, NULL },
{ 'o', "open", "open a door",
doopen, 0, NULL },
+ /* 'm #options' runs doset() */
{ 'O', "options", "show option settings",
doset_simple, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
+ /* 'm #optionsfull' runs doset_simple() */
{ '\0', "optionsfull", "show all option settings, possibly change them",
- doset, IFBURIED | GENERALCMD, NULL },
+ doset, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
/* #overview used to need autocomplete and has retained that even
after being assigned to ^O [old wizard mode ^O is now #wizwhere] */
{ C('o'), "overview", "show a summary of the explored dungeon",
boolean *bool_p;
const char *name;
- if (iflags.menu_requested)
+ if (iflags.menu_requested) {
+ /* doset() checks for 'm' and calls doset_simple(); clear the
+ menu-requested flag to avoid doing that recursively */
+ iflags.menu_requested = FALSE;
return doset();
+ }
if (!made_fmtstr) {
Sprintf(fmtstr_doset, "%%s%%-%us [%%s]",
gavehelp = FALSE, skiphelp = !iflags.cmdassist;
int clr = 0;
+ if (iflags.menu_requested) {
+ /* doset_simple() checks for 'm' and calls doset(); clear the
+ menu-requested flag to avoid doing that recursively */
+ iflags.menu_requested = FALSE;
+ return doset_simple();
+ }
+
/* if we offer '?' as a choice and it is the only thing chosen,
we'll end up coming back here after showing the explanatory text */
rerun: