home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / openloo / 4374 < prev    next >
Encoding:
Text File  |  1992-11-06  |  2.5 KB  |  100 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!utcsri!newsflash.concordia.ca!hobbit.ireq.hydro.qc.ca!NetNews.ireq.hydro.qc.ca!gamin
  3. From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
  4. Subject: Re: Key mapping and NCD Xterms
  5. In-Reply-To: crabtree@dao.nrc.ca's message of 20 Oct 92 14:35:27 EST
  6. Message-ID: <GAMIN.92Nov5155117@pellan.ireq-robot.hydro.qc.ca>
  7. Lines: 86
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Le laboratoire de robotique de l'Institut de recherche
  10.     d'Hydro-Quebec
  11. References: <1992Oct20.193527.4133@sol.UVic.CA>
  12. Date: Thu, 5 Nov 1992 20:51:17 GMT
  13.  
  14. >>>>> Dennis Crabtree writes:
  15.  
  16. >we are trying to use xmodmap to map the Function keys to the OpenLook keys
  17. >like "Open", "Front", "Cut", etc. Has anyone done this successfully?
  18.  
  19. On an NCD N-108LK keyboard, we use the following arrangement for the
  20. top/right function keys:
  21.  
  22. NCD label    OpenWin/X11 meaning
  23.  
  24.     F11            STOP
  25.     F12            AGAIN
  26.     F13            PROPS
  27.     F14            UNDO
  28.     Help        HELP
  29.     Do            REDO
  30.     F17            FRONT
  31.     F18            OPEN
  32.     F19            COPY
  33.     F20            PASTE
  34.  
  35. and the "edit" cluster:
  36.  
  37.     Find        FIND
  38.     Insert Here        PASTE    (note the repetition with F20)
  39.     Remove        CUT
  40.  
  41. We also modify the following keys:
  42.  
  43.     "> <"        emits   "~ `"
  44.     "~ `"        emits   "Escape"
  45.     "Keypad Enter"  emits   "Linefeed"
  46.     "Left Compose"  is        "Meta"
  47.  
  48.  
  49. This is accomplished by putting the following in a sh script:
  50.  
  51. -----------------------------  Cut Here  -----------------------------
  52. xmodmap - << \EOF
  53. !
  54. ! Replace the (Esc) and (~`) keys
  55. !
  56. keycode 9 = quoteleft asciitilde
  57. keycode 14 = Escape Escape
  58. !
  59. ! Corrections to the keyboard (bug?)
  60. !
  61. keycode 0x52 =  apostrophe      quotedbl
  62. keycode 0x70 =  KP_0
  63. !
  64. ! Makes the left 'Compose' a Meta key
  65. !
  66. keycode 119 = Meta_L
  67. clear mod1
  68. clear mod2
  69. add mod1 = Meta_L
  70. keycode 0x78 =  Multi_key
  71. !
  72. ! Prepare Do, Find, InsertHere, Remove and F17-F20 keys
  73. ! to replace Sun's left keypad.
  74. ! Unfortunately, NCD's server refuses to map them on L1-L10.
  75. ! Sun's olwm accepts F11-F20 as equivalents.
  76. !
  77. keycode 0x7F =  Redo
  78. keycode 0x80 =  F15
  79. keycode 0x81 =  F17
  80. keycode 0x82 =  F16
  81. keycode 0x83 =  F18
  82. keycode 0x6E =  F19
  83. keycode 0x67 =  F18
  84. keycode 0x64 =  F20
  85. !
  86. ! Makes 'Enter' a 'Linefeed'
  87. keycode 121 = Linefeed
  88. !
  89. EOF
  90. -----------------------------  Cut Here  -----------------------------
  91.  
  92. Good luck!
  93.  
  94. --
  95. Martin Boyer                            mboyer@ireq-robot.hydro.qc.ca
  96. Institut de recherche d'Hydro-Quebec    mboyer@ireq-robot.uucp
  97. Varennes, QC, Canada   J3X 1S1
  98. +1 514 652-8412
  99.