have <del> run #terrain

Having recently noticed that using <del> aka <delete> aka <rubout>
could work as a command, assign it to #terrain.  #terrain was the
only command in the "game" subset of commands as shown by '? i'
that didn't have any key assignment.

Since <delete> might be swapped with <backspace> on some terminals
and is a keypad key on the typical PC keyboard, it might not work
reliably depending on nethack's number_pad mode or the hardware
Num-Lock setting.  Players in either of those situations haven't
lost anything; they can still use extended command #terrain.
This commit is contained in:
PatR
2020-12-14 01:00:19 -08:00
parent fcd74aedf4
commit 788e21ac43
5 changed files with 62 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.391 $ $NHDT-Date: 1607901923 2020/12/13 23:25:23 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.392 $ $NHDT-Date: 1607936398 2020/12/14 08:59:58 $
General Fixes and Modified Features
-----------------------------------
@@ -670,6 +670,7 @@ let tourists read conical hats
when "?i" (show key bindings) displays commands and their keys, also show
commands without any key (so useable via '#', or possibly menu, only;
the majority are debugging commands)
assign default key binding for <del> or <delete> to execute #terrain
Platform- and/or Interface-Specific New Features