]> granicus.if.org Git - nethack/commit
command handling for !SHELL and !SUSPEND
authorPatR <rankin@nethack.org>
Mon, 3 Dec 2018 00:43:53 +0000 (16:43 -0800)
committerPatR <rankin@nethack.org>
Mon, 3 Dec 2018 00:43:53 +0000 (16:43 -0800)
commit13ef86488a3dfa91d3283a7b4019df504e827b15
treeaf3a5328adf36129997405ebbc06986fb04964f3
parent7e9bc20c3a69c4dec53a28627b61a6bda69260fc
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.
doc/fixes36.2
include/func_tab.h
src/cmd.c