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 @@
&# cmdhelp
&# cmdhelp - became obsolete when 'BINDINGS=key:command' got added
& Tell what command a keystroke invokes
^ Show the type of an adjacent trap
^[ Cancel command (same as ESCape key)
@@ -145,6 +145,7 @@ _ Travel via a shortest-path algorithm to a point on the map
* Show all equipment in use (combination of the ),[,=,",( commands)
$ Count your gold
+ List known spells
Del Display map without monsters or objects obstructing the view.
# Perform an extended command (use '#?' to list choices)
&# number_pad:
&# -1 = numpad off, swap y with z (including Y with Z, ^Y with ^Z, M-y &c)