[TF] Numpad Walking
Brought to you by:
kenkeys
|
From: johehir at cpinternet.c. (J. O'Hehir) - 2003-02-23 12:11:26
|
> Hello, > It's me again, Thanks for the timer help, it works pretty. > I'm using tf under Linux, I cant't bind the numpad to do the usual walking > stuff (8 for n, 9 for ne, etc). I've tried with and without numLock, whit > numlok, I've got the numbers, without, the "home" "up" and the like stuff. I run linux as well and had this same problem. I'm sure there's a better way to find out the key bindings, but being a linux newbie I'm clueless about where to look. What did work for me was to telnet to the local host with NUMLOCK off and pressed each of the keys at the login prompt and see what values appeared. I took those values and defined them as below and all works great. ;****************************************************************** ;Linux Keys for Numeric Keypad directions ;****************************************************************** /def -i -b'^[[1~' = nw ;Numeric 7 /def -i -b'^[[A' = n ;Numeric 8 /def -i -b'^[[5~' = ne ;Numeric 9 /def -i -b'^[[D' = w ;Numeric 4 ;Numeric 5: /def -i -b'^[[G' = look%;search /def -i -b'^[[C' = e ;Numeric 6 /def -i -b'^[[4~' = sw ;Numeric 1 /def -i -b'^[[B' = s ;Numeric 2 /def -i -b'^[[6~' = se ;Numeric 3 /def -i -b'^[[2~' = down ;Numeric 0 /def -i -b'^[[3~' = up ;Numeric . |