Add key rebinding
commit680c8a542cb981da0b64fbdd1457d69447f05efb
authorPasi Kallinen <paxed@alt.org>
Wed, 5 Oct 2016 14:19:06 +0000 (5 17:19 +0300)
committerPasi Kallinen <paxed@alt.org>
Wed, 5 Oct 2016 17:04:56 +0000 (5 20:04 +0300)
treeaa528551987e9045b0898122f55e6b2f957648f3
parentd0783facdc2793824c5f016ea68d85268e6bd5d8
Add key rebinding

This is a modified version of Jason Dorje Short's key rebinding
patch, and allows also binding special keys, such as the ones
used in getloc and getpos.

One of the ways to play NetHack on nethack.alt.org is via a HTML
terminal in browser. Unfortunately this means several ctrl-key
combinations cannot be entered, because the browser intercepts
those. Similar thing applies to some international keyboard layouts
on Windows. With this patch, the user can just rebind the command
to a key that works best for them.

I've tested this on Linux TTY, X11, and Windows TTY and GUI.
15 files changed:
doc/Guidebook.mn
doc/Guidebook.tex
doc/fixes36.1
include/extern.h
include/flag.h
include/func_tab.h
src/allmain.c
src/cmd.c
src/do_name.c
src/files.c
src/hacklib.c
src/options.c
src/pager.c
win/tty/getline.c
win/win32/mswproc.c