home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / TEDdesk / reloc.8 / $TED_DIR / app-defaults / C / UNIXbindings < prev   
Text File  |  1998-08-19  |  6KB  |  140 lines

  1. !######################################################################
  2. !#
  3. !#  UNIXbindings
  4. !#
  5. !#     TriTeal Enterprise Desktop (TED)
  6. !#
  7. !#     (c) Copyright 1994, 1995 TriTeal Corporation
  8. !#     (c) Copyright 1993, 1994 Hewlett-Packard Company
  9. !#     (c) Copyright 1993, 1994 International Business Machines Corp.
  10. !#     (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  11. !#     (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary 
  12. !#         of Novell, Inc.
  13. !#
  14. !#  Provides EMACS style translations for DtEditor widget applications
  15. !#  such as Dtpad and Dtmail.  Also provides alternates for DtEditor
  16. !#  widget application menu accelerators which confict with these
  17. !#  translations.
  18. !#
  19. !#  By default this file is not used by DtEditor widget applications.
  20. !#  To enable these bindings, include this file in your home directory
  21. !#  .Xdefaults file and then restart your session.  Initially, you can
  22. !#  include this file simply by inserting a #include directive in your
  23. !#  .Xdefaults file:
  24. !#
  25. !#    #include "/usr/dt/app-defaults/LANG/UNIXbindings"
  26. !#
  27. !#  where LANG is the value of your $LANG environment variable
  28. !#  (normally "C").
  29. !#
  30. !#  To modifiy these bindings, insert the contents of this file directly
  31. !#  in your .Xdefaults file instead of the above include directive.
  32. !#  Then edit the bindings in your .Xdefaults file (and restart your
  33. !#  session when done).
  34. !#
  35. !#
  36. !######################################################################
  37.  
  38.  
  39. !######################################################################
  40. !# Dtpad overrides for menu accelerators and accelerator text which
  41. !# confict with the UNIX bindings.
  42. !######################################################################
  43. Dtpad*fileMenu.print.acceleratorText:        
  44. Dtpad*fileMenu.print.accelerator:        
  45. Dtpad*editMenu.undo.acceleratorText:        Ctrl+_
  46. Dtpad*editMenu.undo.accelerator:        Ctrl<Key>_
  47. Dtpad*editMenu.paste.acceleratorText:        Shift+Insert
  48. Dtpad*editMenu.paste.accelerator:        Shift<Key>osfInsert
  49. Dtpad*editMenu.findChange.acceleratorText:    Ctrl+S
  50. Dtpad*editMenu.findChange.accelerator:        Ctrl<Key>s
  51.  
  52.  
  53. !######################################################################
  54. !# Dtmail compose dialog overrides for menu accelerators and accelerator
  55. !# text which confict with the UNIX bindings.
  56. !######################################################################
  57. Dtmail*ComposeDialog*menubar*Edit.Undo.acceleratorText:        Ctrl+_
  58. Dtmail*ComposeDialog*menubar*Edit.Undo.accelerator:         Ctrl<Key>_
  59. Dtmail*ComposeDialog*menubar*Edit.Paste.acceleratorText:     Shift+Insert
  60. Dtmail*ComposeDialog*menubar*Edit.Paste.accelerator:         Shift<Key>osfInsert
  61. Dtmail*ComposeDialog*menubar*Edit.Find/Change.acceleratorText:     Ctrl+S
  62. Dtmail*ComposeDialog*menubar*Edit.Find/Change.accelerator:     Ctrl<Key>s
  63.  
  64.  
  65. !######################################################################
  66. !# UNIX Bindings.
  67. !#
  68. !# The following translations provide (GNU style) EMACS control and
  69. !# meta key bindings plus some additional bindings.  When appropriate,
  70. !# they also allow the Shift key to be used in combination with the
  71. !# normal binding to reverse the direction of the operation.  For
  72. !# example, Ctrl-Shift-F will move the cursor backward a character
  73. !# since Ctrl-F normally moves it forward a character.
  74. !#
  75. !# The additional bindings are:
  76. !#
  77. !#    Ctrl-comma:  backward-word       Ctrl-Shift-comma:  forward-word
  78. !#    Ctrl-period: forward-word        Ctrl-Shift-period: backward-word
  79. !#    Ctrl-Return: end-of-file         Ctrl-Shift-Return: beginning-of-file
  80. !#
  81. !# NOTES:
  82. !#
  83. !#  o GNU EMACS binds delete-previous-character() rather than
  84. !#    delete-next-character() to the Delete key.
  85. !#  o Meta-F is normally the mnemonic for the File menu so the binding
  86. !#    to forward-word() will be ignored.
  87. !#
  88. !######################################################################
  89. *DtEditor.textTranslations: \
  90. c ~s        <Key>a:            beginning-of-line()\n\
  91. c s        <Key>a:            end-of-line()\n\
  92. c ~s        <Key>b:            backward-character()\n\
  93. c s        <Key>b:            forward-character()\n\
  94. c ~s        <Key>b:            backward-character()\n\
  95. c s        <Key>b:            backward-word()\n\
  96. m ~s        <Key>b:            backward-word()\n\
  97. m s        <Key>b:            forward-word()\n\
  98. c ~s        <Key>d:            delete-next-character()\n\
  99. c s        <Key>d:            delete-previous-character()\n\
  100. m ~s        <Key>d:            kill-next-word()\n\
  101. m s        <Key>d:            kill-previous-word()\n\
  102. c ~s        <Key>e:            end-of-line()\n\
  103. c s        <Key>e:            beginning-of-line()\n\
  104. c ~s        <Key>f:            forward-character()\n\
  105. c s        <Key>f:            backward-character()\n\
  106. m ~s        <Key>f:            forward-word()\n\
  107. m s        <Key>f:            backward-word()\n\
  108. c        <Key>j:            newline-and-indent()\n\
  109. c ~s        <Key>k:            kill-to-end-of-line()\n\
  110. c s        <Key>k:            kill-to-start-of-line()\n\
  111. c        <Key>l:            redraw-display()\n\
  112. c        <Key>m:            newline()\n\
  113. c ~s        <Key>n:            process-down()\n\
  114. c s        <Key>n:            process-up()\n\
  115. c        <Key>o:            newline-and-backup()\n\
  116. c ~s        <Key>p:            process-up()\n\
  117. c s        <Key>p:            process-down()\n\
  118. c ~s        <Key>u:            kill-to-start-of-line()\n\
  119. c s        <Key>u:            kill-to-end-of-line()\n\
  120. c ~s        <Key>v:            next-page()\n\
  121. c s        <Key>v:            previous-page()\n\
  122. m ~s        <Key>v:            previous-page()\n\
  123. m s        <Key>v:            next-page()\n\
  124. c        <Key>w:            kill-selection()\n\
  125. c ~s        <Key>y:            unkill()\n\
  126. m        <Key>]:            forward-paragraph()\n\
  127. m        <Key>[:            backward-paragraph()\n\
  128. c ~s        <Key>comma:        backward-word()\n\
  129. c s        <Key>comma:        forward-word()\n\
  130. m        <Key>\\<:        beginning-of-file()\n\
  131. c ~s        <Key>period:        forward-word()\n\
  132. c s        <Key>period:        backward-word()\n\
  133. m        <Key>\\>:        end-of-file()\n\
  134. c ~s        <Key>Return:        end-of-file()\n\
  135. c s        <Key>Return:        beginning-of-file()\n\
  136. ~c ~s ~m ~a    <Key>osfDelete:        delete-previous-character()\n\
  137. ~c s ~m ~a    <Key>osfDelete:        delete-next-character()
  138.  
  139. !###########################   eof   ###########################
  140.