home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / ingres / 2385 < prev    next >
Encoding:
Text File  |  1993-01-28  |  4.7 KB  |  127 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!UB.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!news.aero.org!speedy.aero.org!ariel.aero.org!amiranda
  3. From: amiranda@ariel.aero.org (Ann Miranda)
  4. Subject: Sun Sparc 10 / Sun5 keyboard mappings
  5. Message-ID: <1993Jan28.145848.20160@speedy.aero.org>
  6. Sender: news@speedy.aero.org
  7. Nntp-Posting-Host: ariel.aero.org
  8. Organization: The Aerospace Corporation; El Segundo, CA
  9. Date: Thu, 28 Jan 1993 14:58:48 GMT
  10. Lines: 115
  11.  
  12.     I recently posted for help on keymappings for the new sun5 keyboard for
  13. sparc 10s.  I've had a lot of response -- mostly people with the same problem,
  14. asking for help also.
  15.  
  16.     I got a response from an Ingres person, who sent me some keymaps to
  17. include in the .Xdefaults and .xmodmaprc files.  I am including them in this post,
  18. for people to try.  I tried the keymaps, but still have some problems.  
  19.  
  20.     Ingres says the problem is due to Motif, but I have it in both Motif and 
  21. Openwindows. Also,the keymaps they gave are for TERM_INGRES = vt100f, and it
  22. is not obvious what keys you must press on the keyboard to access the
  23. corresponding functions-- ie. like the "PF2" key doesn't exist on the sun5 
  24. keyboard, and I can't figure out which key is supposed to be that key. 
  25.  
  26.     I have been told that to map a new keyboard completely is a laborious
  27. task!  But I really want to use my keyboard as a sun5 keyboard, not a vt100f
  28. keyboard.  If I get anywhere, I'll post again.
  29.  
  30.     If anyone tries this information from Ingres, and it works, please let
  31. me know -- I may be doing something wrong.  (At least a vt100f is better than
  32. a vt100, which does work on the sparc 10, but is a real pain!)
  33.  
  34. Ann Miranda
  35. amiranda@ariel.aero.org
  36.  
  37.  
  38. Following is the info I received from Ingres (with credit to Scott Stevens
  39. and Jeff Bryson)
  40.  
  41. -----begin file -------
  42.  
  43. CAUTION: The following is not supported, as of 12/10/92:
  44.  
  45. The problem is not with the termcap definitions for INGRES, but rather
  46. with X/MOTIF termcap definitions.  NOTE THAT WITHOUT THE MODIFICATIONS
  47. BELOW, THE ARROW KEYS DO NOT EVEN WORK IN THE "vi" EDITOR.  
  48.  
  49. These modifications are for the X/MOTIF environment only.  Set
  50. TERM_INGRES to "vt100f".
  51.  
  52. ------------------- cut here and put near top of X11R4init --------
  53. xmodmap -e "keysym BackSpace = Delete"
  54. xmodmap ~/.xmodmaprc
  55. ------------------- cut here and call .xmodmaprc ----------------
  56. keycode   8 = F11 Cancel
  57. keycode  10 = F12 Redo
  58. keycode  20 = Alt_R
  59. keycode  27 = Up
  60. keycode  29 = F22 Print
  61. keycode  30 = F23 Scroll_Lock
  62. keycode  31 = Left
  63. keycode  33 = F14 Undo
  64. keycode  34 = Down
  65. keycode  35 = Right
  66. keycode  51 = Insert
  67. keycode  59 = Home
  68. keycode  76 = F28 KP_8
  69. keycode  81 = End
  70. keycode  98 = F30 KP_4
  71. keycode  99 = F31 KP_5
  72. keycode 100 = F32 KP_6
  73. keycode 118 =
  74. keycode 119 = R13 KP_1
  75. keycode 120 = F34 KP_2
  76. keycode 121 = F35 KP_3
  77. keycode 103 = Prior
  78. keycode 130 = Next
  79. ------------------- cut here and put in .Xdefaults --------------
  80. /*
  81. **    These translations cause some of the Sun Type-5 Keyboard keys to
  82. **    generate strings making them equivalent to various VT100 keys.
  83. **    
  84. **    Sun    VT100
  85. **    ---    -----
  86. **    NumLock    PF1
  87. **    /    PF2
  88. **    *    PF3
  89. **    -    PF4
  90. **    PageUp    ,
  91. **    PageDn    -
  92. */
  93. XTerm.VT100.Translations: #override \
  94.         <Key>Help:              string(0x1b) string("[28~") \n\
  95.         <Key>F1:                string(0x1b) string("[18~") \n\
  96.         <Key>F2:                string(0x1b) string("[19~") \n\
  97.         <Key>F3:                string(0x1b) string("[20~") \n\
  98.         <Key>F4:                string(0x1b) string("[21~") \n\
  99.     <Key>F5:                string(0x1b) string("[23~") \n\
  100.     <Key>F6:                string(0x1b) string("[24~") \n\
  101.     <Key>F7:                string(0x1b) string("[25~") \n\
  102.     <Key>F8:                string(0x1b) string("[26~") \n\
  103.     <Key>F9:                string(0x1b) string("[31~") \n\
  104.     <Key>F10:               string(0x1b) string("[32~") \n\
  105.     <Key>F11:               string(0x1b) string("[33~") \n\
  106.     <Key>F12:               string(0x1b) string("[34~") \n\
  107.     <Key>Num_Lock:        string(0x1b) string("OP") \n\
  108.     <Key>KP_Equal:         string(0x1b) string("OQ") \n\
  109.     <Key>KP_Multiply:    string(0x1b) string("OR") \n\
  110.     <Key>KP_Subtract:    string(0x1b) string("OS") \n\
  111.     <Key>Prior:        string(0x1b) string("Om") \n\
  112.     <Key>Next:        string(0x1b) string("Ol") \n\
  113.     <Key>KP_7:         string(0x1b) string("Ow") \n\
  114.     <Key>KP_8:        string(0x1b) string("Ox") \n\
  115.     <Key>KP_9:         string(0x1b) string("Oy") \n\
  116.     <Key>KP_4:        string(0x1b) string("Ot") \n\
  117.     <Key>KP_5:         string(0x1b) string("Ou") \n\
  118.     <Key>KP_6:        string(0x1b) string("Ov") \n\
  119.     <Key>KP_1:         string(0x1b) string("Oq") \n\
  120.     <Key>KP_2:        string(0x1b) string("Or") \n\
  121.     <Key>KP_3:         string(0x1b) string("Os") \n\
  122.     <Key>KP_0:        string(0x1b) string("Op") \n\
  123.     <Key>KP_Decimal:    string(0x1b) string("On") \n\
  124.     <Key>KP_Enter:        string(0x1b) string("OM") \n
  125.  
  126.  
  127.