I am running ODT 3 using 101 PC style keyboard. I start a remote Xterm
from a SUN LX running Solaris 2.4 using the command:
rcmd sparcdev /usr/openwin/bin/xterm -display $DISPLAY \
-name Sparcdev -bg SteelBlue -fg white -ls &
I can't get the Keypad numbers to work. It doesnt mater if the Num lock
is on or off. The greyed keys work (/*-+ and <ENTER>) but 0.123456789
respond back with X. Viewing the VT options (<CTL> Middle mouse) I have:
scrollbar/jumscroll/autowrap/scrollttyoutput on and all other options off.
I have toggled other options like appkeypad/cursorsemul etc to no avail.
appkeypad did change the X to some other garbage though.
xmodmap -pk shows on local Xterm:
-----
78 0xff96 (KP_Home) 0xffb7 (KP_7)
79 0xff98 (KP_Up) 0xffb8 (KP_8)
80 0xff9b (KP_Prior) 0xffb9 (KP_9)
81 0xffad (KP_Subtract)
82 0xff97 (KP_Left) 0xffb4 (KP_4)
83 0xff95 (KP_Begin) 0xffb5 (KP_5)
84 0xff99 (KP_Right) 0xffb6 (KP_6)
85 0xffab (KP_Add)
86 0xff9d (KP_End) 0xffb1 (KP_1)
87 0xff9a (KP_Down) 0xffb2 (KP_2)
-----
xmodmap -pk shows on remote SUN Xterm:
-----
78 0xff96 (KP_Left) 0xffb7 (KP_7)
79 0xff98 (KP_Right) 0xffb8 (KP_8)
80 0xff9b (KP_Next) 0xffb9 (KP_9)
81 0xffad (KP_Subtract)
82 0xff97 (KP_Up) 0xffb4 (KP_4)
83 0xff95 (KP_Home) 0xffb5 (KP_5)
84 0xff99 (KP_Down) 0xffb6 (KP_6)
85 0xffab (KP_Add)
86 0xff9d (KP_Begin) 0xffb1 (KP_1)
87 0xff9a (KP_Prior) 0xffb2 (KP_2)
-----
Using xev I focus the window and then hit the Keypad 7, then the numlock
then the Keypad 7 again.
Using xev on a local Xterm I get:
--------
KeyPress event, serial 13, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2639257854, (114,81), root:(475,375),
state 0x0, keycode 78 (keysym 0xff96, KP_Home), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 13, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2639257974, (114,81), root:(475,375),
state 0x0, keycode 78 (keysym 0xff96, KP_Home), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 15, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2639271474, (114,81), root:(475,375),
state 0x0, keycode 76 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 15, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2639273574, (114,81), root:(475,375),
state 0x10, keycode 78 (keysym 0xffb7, KP_7), same_screen YES,
XLookupString gives 1 characters: "7"
KeyRelease event, serial 15, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2639273674, (114,81), root:(475,375),
state 0x10, keycode 78 (keysym 0xffb7, KP_7), same_screen YES,
XLookupString gives 1 characters: "7"
----
Using xev on the Remote SUN Xterm I get:
----
KeyPress event, serial 15, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2640161404, (59,68), root:(437,396),
state 0x0, keycode 78 (keysym 0xff96, KP_Left), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 16, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2640161524, (59,68), root:(437,396),
state 0x0, keycode 78 (keysym 0xff96, KP_Left), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 17, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2640163984, (59,68), root:(437,396),
state 0x0, keycode 76 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 characters: ""
KeyPress event, serial 17, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2640171564, (59,68), root:(437,396),
state 0x10, keycode 78 (keysym 0xff96, KP_Left), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 17, synthetic NO, window 0x6400001,
root 0x29, subw 0x0, time 2640171714, (59,68), root:(437,396),
state 0x10, keycode 78 (keysym 0xff96, KP_Left), same_screen YES,
XLookupString gives 0 characters: ""
I need to get this to work as I have some applications on the SUN that
need these keys for User simplicity.
Any help would be appreciated.
--
Daryl Sayers Ph: (02) 417 3788
Stone Group Asia Pacific Fax: (02) 417 3741
Roseville, 2069 NSW Australia WWW: http://sydney.DIALix.com/~stone