]> granicus.if.org Git - nethack/commitdiff
number pad changes from pull request #247
authornhmall <nhmall@nethack.org>
Wed, 27 Nov 2019 22:19:55 +0000 (17:19 -0500)
committernhmall <nhmall@nethack.org>
Wed, 27 Nov 2019 22:19:55 +0000 (17:19 -0500)
Below is the accompanying text from the pull request on
GitHub https://github.com/NetHack/NetHack/pull/247:

> This fixes the issue brought up in https://www.reddit.com/r/nethack/comments/dv3pae/curses_and_the_numberpad/?st=k3hgply6&sh=dbc2bf7d .
>
> I don't know why the "regular" (tty) method doesn't seem to work for him,
> but I'm going to chalk it up to a PDCurses oddity. What I do know, however,
> is that the alternate method I added a year ago or maybe longer, that allows
> numpad usage even with number_pad:0 (to retain the default keybindings in case
> an user is used to them, while keeping number pad behaviour making sense,
> similar to NetHack4+friends) was only partially implemented, for some reason.
> This adds the rest of the keys, meaning that this means of key interpretation
> should be more realible. KEY_A2/B1/B3/C2 are not standard keys in the Curses
> documentation, and is thus behind an ifdef -- but PDCurses, amongst other
> implementations, makes use of them.
>
> As a side effect, Home/End/PgUp/PgDn are now interpreted as diagonal movement,
> since some terminals interpret number_pad keys that way. I do not consider this
> a problem since they went unused in normal gameplay anyway (This does not
> interfere with menus or similar).

Closes #247

doc/fixes36.3

index 4dd283b4d592d68eb9be43c2a7ba4061e5b81470..2573be3bc21d4726e041431264e1712ebccd914e 100644 (file)
@@ -479,6 +479,7 @@ add a couple of engraving suggestions in pull request #79
 chasonr's faster method to write characters to msdos VGA in pull request #220
 chasonr's msdos Makefile.gcc pdcurses build changes in pull request #243
 autopickup exception priority change in pull request #226
+FIQ's curses (PDCurses) number pad changes in pull request #247
 
 
 Code Cleanup and Reorganization