command handling for !SHELL and !SUSPEND
Change the command list to always include #shell and #suspend so that a user's preferred key bindings can span platforms without worrying about whether those exist or not. They're still effectively no-ops when compiled out. '#?' suppresses them from the list of displayed commands. Interface- specific extended command handling may want to check new extcmd.flag value CMD_NOT_AVAILABLE to do the same, but failing to do so shouldn't pose a problem. They behave sanely if executed when not supported.
This commit is contained in:
@@ -275,6 +275,8 @@ Platform- and/or Interface-Specific Fixes or Features
|
||||
-----------------------------------------------------
|
||||
move 'perm_invent' value from flags to iflags to keep it out of save files;
|
||||
affects X11, win32, and curses
|
||||
always define shell and suspend commands so that key bindings copied from one
|
||||
platform to another work even if second one disables those commands
|
||||
windows-gui: In nethackw, there could be conflicts between menu accelerators
|
||||
and an extra choice accelerator to fix H7132.
|
||||
windows-gui: recognize new BL_RESET in status_update; no change in behavior yet
|
||||
|
||||
Reference in New Issue
Block a user