Opened 11 years ago

Closed 10 years ago

#796 closed bug (fixed (in master))

NumPad does not work properly when using PuTTY (main-gcu)

Reported by: magnate Owned by:
Milestone: 3.1.2 beta Keywords: gcu
Cc:

Description (last modified by takkaria)

When using PuTTY with NumPad? set to Normal and NumLock? on, my NumPad? keys produce the digits 1-9 when typing in the Linux console. When I start angband, they produce the following:

1 is q
2 is r
3 is s
4 is t
5 is u
6 is v
7 is w
8 is indeterminate (suspect x)
9 is indeterminate (suspect y)

Toggling NumLock? does not change this. Messing with PuTTY's NumPad? setting produces different mappings, but PuTTY is not the problem, as it produces 1-9 perfectly normally on the console.

If anyone else suffers from this, there is a workaround: set angband to use roguelike commands, and set PuTTY's NumPad? setting to "Nethack". This makes the NumPad? work properly, but of course means you have to use all the other roguelike commands. Very painful for me as I have been using the standard keyset for 9 years.

CC

Attachments (1)

putty.patch.txt (2.0 KB) - added by d_m 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by magnate

  • Reporter changed from anonymous to magnate

comment:2 Changed 10 years ago by takkaria

  • Milestone changed from Triage to 3.1.2 beta

comment:3 Changed 10 years ago by takkaria

  • Description modified (diff)

comment:4 Changed 10 years ago by magnate

  • Keywords gcu added

Changed 10 years ago by d_m

comment:5 Changed 10 years ago by d_m

  • Status changed from new to confirmed

This patch fixes the problem (I think) but I want to get some feedback before committing it.

comment:6 Changed 10 years ago by magnate

The patch works perfectly for me - I can now play via PuTTY, or in an xterm, or in a console, all with the NumPad working properly. Many thanks.

comment:7 Changed 10 years ago by d_m

  • Resolution set to fixed
  • Status changed from confirmed to closed
Note: See TracTickets for help on using tickets.