From: harris@zk3.dec.com (Bob Harris)
Subject: Re: PCxxx and LKnnn keymaps
Date: 1998/10/21 [thread overview]
Message-ID: <harris-ya023680002110980955480001@usenet.pa.dec.com> (raw)
In-Reply-To: 362CFC07.167E@X-no.sp.am-X.lawrence.edu
In article <362CFC07.167E@X-no.sp.am-X.lawrence.edu>, Robert Lowe
<Robert.H.Lowe@X-no.sp.am-X.lawrence.edu> wrote:
>How do I successfully get a PC-style keyboard to emulate an LK-style
>keyboard???
>
>/usr/examples/pc_to_lk_keys.sh gets close, but not quite. A DSNlink
>article suggests modifying this script, adding two lines which pertain
>to the BackSpace and Delete keys. After this modification, moving
>to LK-style keymaps allows the keypad keys to function properly, but
>both the BackSpace and Delete keys end up being mapped to Select (not
>very useful!).
This is the xmodmap file that I use. It is not exactly an LK201, but I like it.
!-------------------------------------------------------------------------
! .dxkeycaps.pcxal
!
! This is an `xmodmap' input file for the PCXAL (American) keyboard.
! This file was automatically generated on Thu Jul 6 16:22:08 1995
! by harris with /usr/bin/X11/dxkeycaps. It attempts to make the PCXAL
! keyboard more like the LK201 keyboard (control key is to the left of the 'A'
! key where it should be!)
!
! Use the following command to load these settins:
!
! /usr/bin/X11/xmodmap $HOME/.dxkeycaps.lk401
!
! Use the /usr/bin/X11/dxkeycaps to examine the settings after executing
! xmodmap.
!
! Key remapping:
!
! Caps Lock swapped with Control so that the more frequently used Control
! key is in a more comfortable position.
! F8 generates ^Z (an OpenVMS'ism, except that on an LK201 it would
! actually be F10, but on the PCXAL keyboard the F8 position is
! physically closer to where the LK201 F10 key was, and it is
! touch typing finger memory I'm trying to duplicate)
! F9 generates <ESC> (on an LK201 it would actually be F11, but on the
! PCXAL keyboard the F9 position is physically closer to where the
! LK201 F11 key was, and it is touch typing finger memory I'm
! trying to duplicate)
! \ key (backslash) generates Carriage Return to give me an oversized
! Return key. I found that I was frequently hitting backslasH when
! I wanted return, so I just moved backslash to the Right Control
! key and turned the backslash key into a Return key.
! Right Control key generates \ (backslash) and <Shift> | (vertical bar)
! The center keypad is mapped to match the LK201
! Find Insert Cut
! Select Up Down
! The numeric keypad is mapped to generate PF1-PF4 along the top row (PF4
! being the OpenVMS "DO" key.
! The large double long + (plus) key on the numeric keypad has been
! remapped to be , (comma) and <Shift> - (minus). This was a compromise
! since the LK201 has 2 separate keys for comma and minus.
!
keycode 0x08 = Escape
keycode 0x09 = F1
keycode 0x0F = F2
keycode 0x17 = F3
keycode 0x1F = F4
keycode 0x27 = F5
keycode 0x2F = F6
keycode 0x37 = F7
keycode 0x3F = F10
keycode 0x47 = Escape F11 Escape F11
keycode 0x4F = F10
keycode 0x56 = F11
keycode 0x5E = Menu
keycode 0x57 = Print Sys_Req
keycode 0x5F = Scroll_Lock
keycode 0x62 = Pause Break
keycode 0x0E = grave asciitilde grave asciitilde
keycode 0x16 = 1 exclam
keycode 0x1E = 2 at
keycode 0x26 = 3 numbersign
keycode 0x25 = 4 dollar
keycode 0x2E = 5 percent
keycode 0x36 = 6 asciicircum
keycode 0x3D = 7 ampersand
keycode 0x3E = 8 asterisk
keycode 0x46 = 9 parenleft
keycode 0x45 = 0 parenright
keycode 0x4E = minus underscore
keycode 0x55 = equal plus
keycode 0x66 = Delete
keycode 0x67 = Find
keycode 0x6E = Insert
keycode 0x6F = DRemove
keycode 0x76 = KP_F1
keycode 0x77 = KP_F2
keycode 0x7E = KP_F3
keycode 0x84 = KP_F4
keycode 0x0D = Tab
keycode 0x15 = Q
keycode 0x1D = W
keycode 0x24 = E
keycode 0x2D = R
keycode 0x2C = T
keycode 0x35 = Y
keycode 0x3C = U
keycode 0x43 = I
keycode 0x44 = O
keycode 0x4D = P
keycode 0x54 = bracketleft braceleft
keycode 0x5B = bracketright braceright
keycode 0x5C = Return bar
keycode 0x64 = Select
keycode 0x65 = Prior
keycode 0x6D = Next
keycode 0x6C = KP_7
keycode 0x75 = KP_8
keycode 0x7D = KP_9
keycode 0x7C = KP_Separator KP_Subtract
keycode 0x14 = Control_L
keycode 0x1C = A
keycode 0x1B = S
keycode 0x23 = D
keycode 0x2B = F
keycode 0x34 = G
keycode 0x33 = H
keycode 0x3B = J
keycode 0x42 = K
keycode 0x4B = L
keycode 0x4C = semicolon colon
keycode 0x52 = apostrophe quotedbl
keycode 0x5A = Return
keycode 0x6B = KP_4
keycode 0x73 = KP_5
keycode 0x74 = KP_6
keycode 0x12 = Shift_L
keycode 0x1A = Z
keycode 0x22 = X
keycode 0x21 = C
keycode 0x2A = V
keycode 0x32 = B
keycode 0x31 = N
keycode 0x3A = M
keycode 0x41 = comma less
keycode 0x49 = period greater
keycode 0x4A = slash question
keycode 0x59 = Shift_R
keycode 0x63 = Up
keycode 0x69 = KP_1
keycode 0x72 = KP_2
keycode 0x7A = KP_3
keycode 0x79 = KP_Enter
keycode 0x11 = Caps_Lock
keycode 0x19 = Alt_L Meta_L
keycode 0x29 = space
keycode 0x39 = Alt_R Meta_R
keycode 0x58 = backslash bar
keycode 0x61 = Left
keycode 0x60 = Down
keycode 0x6A = Right
keycode 0x70 = KP_0
keycode 0x71 = KP_Decimal
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod2
clear Mod4
clear Mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = F10 Control_L
add Mod1 = Alt_L Alt_R
!-------------------------------------------------------------------------
--
Bob Harris
"I don't get to tell me what to do, I only get to tell me how to do it."
Comments expressed here are my own and _NOT_ those of my employer.
prev parent reply other threads:[~1998-10-21 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-20 4:00 PCxxx and LKnnn keymaps Robert Lowe
1998-10-21 4:00 ` Bob Harris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox