home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / language / j51 / emacs.bin / text0000.txt < prev   
Encoding:
Text File  |  1993-10-23  |  3.4 KB  |  88 lines

  1. Hi.  I had a look at the latest ST version of J, and (in case you were still
  2. using your ST), thought I'd forward a few things:
  3.  
  4. Discovering that ^Q allowed me to explore his key mappinmg a a bit.
  5.  
  6. Scott Kolodzieski's original README.ST file expanded by PJF Mar'92:
  7. ==============================================================================
  8. files :  1. j41-st.tos        The executable
  9.      2. input.rc        A key file that specifies the default key 
  10.                   bindings for the readline interface. 
  11. ==============================================================================
  12. Notes :  The major advantage of this ST port of J is the fact that I built a 
  13.      gnu-readline interface into the j input parser. Now j41-st.tos keeps 
  14.      a history of previous commands that may be recalled and changed. Also
  15.        while typing in any command, the current line may be edited and 
  16.      changed anytime before a <return> is pressed. The key bindings are 
  17.      by default, 
  18.  
  19.              ^A : beginning of line 
  20.            ^B : backward-character
  21.          ^D : delete character under cursor (cf <Delete> key)
  22.           ^E : end-of-line
  23.              ^F : forward-character
  24.          ^H : as <Backspace> key
  25.          ^K : kill-to-end-of-line
  26.          ^J : execute (like ^M & enter)
  27.          ^N : next-command
  28.          ^L : redraw screen with current line at top
  29.          ^M : execute (like ^J & enter)
  30.          ^P : previous-command 
  31.          ^Q or ^V quote next character, eg. ^Q^H enters a BS character
  32.          ^R : reverse search for string in this line (end with <esc>)
  33.          ^S : forward search for string in this line
  34.          ^U : kill-to-beginning-of-line
  35.          ^Y : yank-back-previously-killed-buffer
  36.          ^Delete : undelete chars deleted on this line.
  37.  
  38.     A more pleasing arrangment would be to have the 4 arrow keys 
  39.     bound to (^F,^B,^P,^N) in the obvious order. This may be done 
  40.     by setting the environment variable INPUTRC to point to the 
  41.     included file "input.rc". An exmaple of this (from my system
  42.     on which I run bash) would be :
  43.  
  44.             set INPUTRC="c:\lib\readline\input.rc"
  45.                                             ^
  46.                                         |
  47.                                     +-- replace by correct path.
  48.             j41-st.tos
  49.  
  50.     Should put you into j41-st with a nice key binding set up. 
  51.  
  52.                             cheers,
  53.                             scott kolodzieski
  54. ============================================================================== 
  55. This allowed me to set the <Undo> and <Help> keys, and so show how one could
  56. also set the F1-F10 keys.  I guess you could also remap just about any control
  57. or escape sequence.   Here is my (added to) INPUT.RC file:
  58.  
  59. ============================================================================== 
  60. # bind <up-arrow>
  61. "\e*H": previous-history
  62. # bind <down-arrow>
  63. "\e*P": next-history
  64. # bind <left-arrow>
  65. "\e*K": backward-char
  66. # bind <right-arrow>
  67. "\e*M": forward-char
  68. # bind <delete> and <back-space>
  69. "":   backward-delete-char
  70. "✓":   backward-delete-char
  71. #
  72. # Using the ^Q key from within J, I was able to determine the sequences below:
  73. #
  74. # Help key edits a file
  75. "\e*b" "0!:0 'more EXT_CONJ.JS' NB. Edit a list of conjunctions"
  76. # Undo key sets up for )off (Needs a <cr>, unlike unix, can't store one here.)
  77. "\e*a" "0!:55 ')off'"
  78. #  F1   F2   F3   F4   F5   F6   F7   F8   F9   F10   send 
  79. # \e*; \e*< \e*= \e*> \e*? \e*@ \e*A \e*B \e*C \e*D
  80. "\e*;" "4!:0 3"
  81. "\e*<" "0!:0 'vi "
  82. "\e*>" "2!:4 <'"
  83. -- 
  84.  /PJ                                            pjf@osiris.cs.uoguelph.ca
  85.                                                        pjf@vm.uoguelph.ca
  86.                                                        (519)824-4120x6309
  87.  
  88.