]> granicus.if.org Git - nethack/commit
number_pad (modified from <Someone>'s patch)
authornethack.allison <nethack.allison>
Fri, 6 Jun 2003 03:49:56 +0000 (03:49 +0000)
committernethack.allison <nethack.allison>
Fri, 6 Jun 2003 03:49:56 +0000 (03:49 +0000)
commita67ed775cb3e84371edc754d3c882682dcdbd8ea
tree674985ed53e37dc19155b40a6cb198419392d8d5
parent3a31710a6cc2a9fbc3667dd34f8ec0115d9a45fe
number_pad (modified from <Someone>'s patch)

The number_pad option can now optionally hold a value
{0,1, 2 } for {off, on, DOS-mode} but plain number_pad and
!number_pad in config files still work as before.

When number_pad:2 is set, iflags.num_pad_mode is set to 1
which triggers the following behaviour:
> '5', M('5') and M('0') are mapped in rhack()
>in cmd.c, only when they are entered as a command. When used as a
>number, like in the 'n' command, no mapping takes place. '0' is
>already mapped to 'i' by the core. The
>only difference [<Someone>] left in (deliberately) is when you press Ctrl-0;
>this used to map to C('i'), which is an invalid command; now
>keep it '0' (which is interpreted as 'i' by the core.)
doc/Guidebook.mn
doc/Guidebook.tex
include/flag.h
src/cmd.c
src/options.c
sys/msdos/msdos.c
sys/winnt/nhdefkey.c
win/win32/mhmain.c