skogsbaer / hscurses

ncurses binding for Haskell
http://hackage.haskell.org/package/hscurses
GNU Lesser General Public License v2.1
61 stars 21 forks source link

Extend defineKey definition #11

Closed Mikolaj closed 13 years ago

Mikolaj commented 13 years ago

Now it covers all number keys on the numerical keypad under Gnome Terminal with NumLock off, both with Shift and without. Works correctly on my machine.

I'm aware this package is not the right place to fix faulty terminfo databases, curses versions, terminal emulators and their interactions thereof. Still, this little patch makes the game Allure run without problems in Gnome Terminal and there is a justified hope this hack will also help others (see #9 for discussion).

The commit mostly mimics this one:

https://github.com/coreyoconnor/vty/commit/93b8f8e64c0c027b817dfa96959f02976390fc53

and the data was taken from here

http://audit.sourcearchive.com/documentation/1.7.13/tty__named__keys_8h-source.html

and there

http://www.geocities.jp/sakachin2/xehelp/html/HID00000579.htm

skogsbaer commented 13 years ago

Cool, thanks for the patch, I just tested and merged it!