[comp.windows.x] Mapping XTerm/SUN4 keypad to DEC escape sequences...

baxter@xmws.uucp (06/01/91)

Has anyone worked out a set of Keyboard translations that can be put in an
Xdefaults file that will map a SUN4 keyboard to the DEC application 
keypad escape sequences...  

If yes, Would you share them?

Lincoln Baxter
baxter@xmws.uucp          OR          ...uunet!cbmvax!xmws!baxter

lcp@ibism.UUCP (Larry Poleshuck) (06/12/91)

xmodmap /usr/local/X11/lk201ONsun4.expressions where /usr/local/X11/lk201ONsun4.expressions is.  You can then use shift-keypad-key
to get your vt100 keypad sequences.  shift R1 to shift R4 gives the vt100 pf1 to pf4.

!+
! add mappings to sun4 keyboard to support lk201 functionality
!-
keycode		8	=	F11		Select
keycode		20	=	Alt_R
keycode		28	=	F21		KP_F1
keycode		29	=	F22		KP_F2
keycode		30	=	F23		KP_F3
keycode		32	=	F13		Prior
keycode		33	=	F14		Menu
keycode		52	=	F24		KP_Separator
keycode		56	=	F15		Next
keycode		57	=	Delete		KP_Decimal
keycode		102	=	F19		Find
! next line maps cut to remove - remove has no X name
keycode		104	=	F20		0x1000ff00
keycode		105	=	Num_Lock	KP_F4
! add modifiers
add mod1 = Alt_L
add mod1 = Alt_R
add shift = Multi_key

-- 

Larry Poleshuck
Citibank
111 Wall Street
New York, NY  10043

Phone:  212-657-7709
Fax:    212-825-8607
E-Mail: uunet!ibism!lcp