home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!hobbit.ireq.hydro.qc.ca!NetNews.ireq.hydro.qc.ca!gamin
- From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
- Subject: Re: Key mapping and NCD Xterms
- In-Reply-To: crabtree@dao.nrc.ca's message of 20 Oct 92 14:35:27 EST
- Message-ID: <GAMIN.92Nov5155117@pellan.ireq-robot.hydro.qc.ca>
- Lines: 86
- Sender: news@ireq.hydro.qc.ca (Netnews Admin)
- Organization: Le laboratoire de robotique de l'Institut de recherche
- d'Hydro-Quebec
- References: <1992Oct20.193527.4133@sol.UVic.CA>
- Date: Thu, 5 Nov 1992 20:51:17 GMT
-
- >>>>> Dennis Crabtree writes:
-
- >we are trying to use xmodmap to map the Function keys to the OpenLook keys
- >like "Open", "Front", "Cut", etc. Has anyone done this successfully?
-
- On an NCD N-108LK keyboard, we use the following arrangement for the
- top/right function keys:
-
- NCD label OpenWin/X11 meaning
-
- F11 STOP
- F12 AGAIN
- F13 PROPS
- F14 UNDO
- Help HELP
- Do REDO
- F17 FRONT
- F18 OPEN
- F19 COPY
- F20 PASTE
-
- and the "edit" cluster:
-
- Find FIND
- Insert Here PASTE (note the repetition with F20)
- Remove CUT
-
- We also modify the following keys:
-
- "> <" emits "~ `"
- "~ `" emits "Escape"
- "Keypad Enter" emits "Linefeed"
- "Left Compose" is "Meta"
-
-
- This is accomplished by putting the following in a sh script:
-
- ----------------------------- Cut Here -----------------------------
- xmodmap - << \EOF
- !
- ! Replace the (Esc) and (~`) keys
- !
- keycode 9 = quoteleft asciitilde
- keycode 14 = Escape Escape
- !
- ! Corrections to the keyboard (bug?)
- !
- keycode 0x52 = apostrophe quotedbl
- keycode 0x70 = KP_0
- !
- ! Makes the left 'Compose' a Meta key
- !
- keycode 119 = Meta_L
- clear mod1
- clear mod2
- add mod1 = Meta_L
- keycode 0x78 = Multi_key
- !
- ! Prepare Do, Find, InsertHere, Remove and F17-F20 keys
- ! to replace Sun's left keypad.
- ! Unfortunately, NCD's server refuses to map them on L1-L10.
- ! Sun's olwm accepts F11-F20 as equivalents.
- !
- keycode 0x7F = Redo
- keycode 0x80 = F15
- keycode 0x81 = F17
- keycode 0x82 = F16
- keycode 0x83 = F18
- keycode 0x6E = F19
- keycode 0x67 = F18
- keycode 0x64 = F20
- !
- ! Makes 'Enter' a 'Linefeed'
- !
- keycode 121 = Linefeed
- !
- EOF
- ----------------------------- Cut Here -----------------------------
-
- Good luck!
-
- --
- Martin Boyer mboyer@ireq-robot.hydro.qc.ca
- Institut de recherche d'Hydro-Quebec mboyer@ireq-robot.uucp
- Varennes, QC, Canada J3X 1S1
- +1 514 652-8412
-