home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / FFA.ZIP / EDITSET.SEQ < prev    next >
Encoding:
Text File  |  1987-12-16  |  13.3 KB  |  292 lines

  1. \ EDITSET.SEQ   Set the editor key assignments          by Tom Zimmer
  2.  
  3. .comment:
  4.   The file EDITSET.SEQ contains the command key definitions for the
  5. SED editor. You can change these assignments, to redefine how the
  6. editor works.
  7.  
  8.   See the end of EDITSET.SEQ for a description of the functions
  9. available in the editor.
  10.  
  11. comment;
  12.  
  13. only forth also editor also definitions
  14.  
  15. : ctlset        ( n1 | function --- )
  16.                 0 max 31 min 2* ['] s^tbl >body @ + 2+ ' swap x! ;
  17.  
  18.         \ control key function table
  19.  
  20. control @ ctlset kerr           \ Null, can NOT be generated.
  21. control A ctlset lwrd           \ Control A
  22. control B ctlset kerr           \ Control B     ** Not used **
  23. control C ctlset pdn            \ Control C
  24. control D ctlset rchr           \ Control D
  25. control E ctlset upln           \ Control E
  26. control F ctlset rwrd           \ Control F
  27. control G ctlset fdel           \ Control G
  28. control H ctlset bdel           \ Control H     Back Space
  29. control I ctlset stab           \ Control I     TAB
  30. control J ctlset kerr           \ Control J     ** Not used **
  31. control K ctlset kerr           \ Control K     ** Not used **
  32. control L ctlset lmset          \ Control L
  33. control M ctlset nln            \ Control M
  34. control N ctlset spltln         \ Control N
  35. control O ctlset kerr           \ Control O     ** Not used **
  36. control P ctlset kerr           \ Control P     ** Not used **
  37. control Q ctlset kerr           \ Control Q     ** Not used **
  38. control R ctlset pup            \ Control R
  39. control S ctlset lchr           \ Control S
  40. control T ctlset wdel           \ Control T
  41. control U ctlset updt           \ Control U
  42. control V ctlset itgl           \ Control V
  43. control W ctlset sclup          \ Control W
  44. control X ctlset dnln           \ Control X
  45. control Y ctlset ldel           \ Control Y
  46. control Z ctlset scldn          \ Control Z
  47. control [ ctlset sesc           \ ESCape
  48. control \ ctlset kerr           \ Control \     ** Not used **
  49. control ] ctlset kerr           \ Control ]     ** Not used **
  50. control ^ ctlset kerr           \ Control ^     ** Not used **
  51. control _ ctlset kerr           \ Control _     ** Not used **
  52.  
  53.  
  54. : fnset         ( n1 | function --- )
  55.                 128 max 255 min 128 - 2* ['] sfuntbl >body @ + 2+ ' swap x! ;
  56.  
  57. 143 fnset sbtab                 \ Back TAB
  58. 158 fnset kerr                  \ Alt-A         ** Not used **
  59. 176 fnset kerr                  \ Alt-B         ** Not used **
  60. 174 fnset exportx               \ Alt-C
  61. 160 fnset kerr                  \ Alt-D         ** Not used **
  62. 146 fnset kerr                  \ Alt-E         ** Not used **
  63. 161 fnset kerr                  \ Alt-F         ** Not used **
  64. 162 fnset kerr                  \ Alt-G         ** Not used **
  65. 163 fnset kerr                  \ Alt-H         ** Not used **
  66. 151 fnset kerr                  \ Alt-I         ** Not used **
  67. 164 fnset kerr                  \ Alt-J         ** Not used **
  68. 165 fnset tabxp                 \ Alt-K
  69. 166 fnset lmset                 \ Alt-L
  70. 178 fnset kerr                  \ Alt-M         ** Not used **
  71. 177 fnset joinln                \ Alt-N
  72. 152 fnset pmenux                \ Alt-O
  73. 153 fnset pmenux                \ Alt-P
  74. 144 fnset kerr                  \ Alt-Q         ** Not used **
  75. 147 fnset kerr                  \ Alt-R         ** Not used **
  76. 159 fnset kerr                  \ Alt-S         ** Not used **
  77. 148 fnset tabset                \ Alt-T
  78. 150 fnset wudel                 \ Alt-U
  79. 175 fnset importx               \ Alt-V
  80. 145 fnset wr->fl                \ Alt-W
  81. 173 fnset excutx                \ Alt-X
  82. 149 fnset lundel                \ Alt-Y
  83. 172 fnset kerr                  \ Alt-Z         ** Not used **
  84.  
  85. 248 fnset kerr                  \ Alt 1         ** Not used **
  86. 249 fnset kerr                  \ Alt 2         ** Not used **
  87. 250 fnset kerr                  \ Alt 3         ** Not used **
  88. 251 fnset kerr                  \ Alt 4         ** Not used **
  89. 252 fnset kerr                  \ Alt 5         ** Not used **
  90. 253 fnset kerr                  \ Alt 6         ** Not used **
  91. 254 fnset kerr                  \ Alt 7         ** Not used **
  92. 255 fnset kerr                  \ Alt 8         ** Not used **
  93. 128 fnset kerr                  \ Alt-9         ** Not used **
  94. 129 fnset kerr                  \ Alt-0         ** Not used **
  95.  
  96. 130 fnset kerr                  \ Alt -         ** Not used **
  97. 131 fnset kerr                  \ Alt =         ** Not used **
  98.  
  99. 199 fnset shoml                 \ HOME  key
  100. 207 fnset sendl                 \ END   key
  101.  
  102. 200 fnset upln                  \ Up    Arrow
  103. 208 fnset dnln                  \ Down  Arrow
  104. 203 fnset lchr                  \ Left  Arrow
  105. 205 fnset rchr                  \ Right Arrow
  106.  
  107. 201 fnset pup                   \ PgUp
  108. 209 fnset pdn                   \ PgDn
  109.  
  110. 210 fnset itgl                  \ Insert key
  111. 211 fnset fdel                  \ Delete key
  112.  
  113. 243 fnset lwrd                  \ Control Left Arrow
  114. 244 fnset rwrd                  \ Control Right Arrow
  115. 247 fnset shom                  \ Control HOME
  116. 245 fnset send                  \ Control END
  117. 246 fnset kerr                  \ Control PgDn  ** Not used **
  118. 132 fnset kerr                  \ Control PgUp  ** Not used **
  119.  
  120. 187 fnset shelp                 \ F1
  121. 187 =: helpkey                  \ Assign F1 as the HELPKEY value.
  122.                                 \ If you set another key as HELP, then
  123.                                 \ change the 187 to the new value of help.
  124.  
  125. 188 fnset tscrn                 \ F2
  126. 189 fnset smrk                  \ F3
  127. 190 fnset bscrn                 \ F4
  128. 191 fnset sgetl                 \ F5
  129. 192 fnset sloon                 \ F6
  130. 193 fnset kerr                  \ F7            ** Not used **
  131. 194 fnset srepn                 \ F8
  132. 195 fnset kerr                  \ F9            ** Not used **
  133. 196 fnset ^cc                   \ F10           ** Not used **
  134.  
  135. 212 fnset kerr                  \ Shift F1      ** Not used **
  136. 213 fnset kerr                  \ Shift F2      ** Not used **
  137. 214 fnset kerr                  \ Shift F3      ** Not used **
  138. 215 fnset kerr                  \ Shift F4      ** Not used **
  139. 216 fnset kerr                  \ Shift F5      ** Not used **
  140. 217 fnset sloob                 \ Shift F6
  141. 218 fnset kerr                  \ Shift F7      ** Not used **
  142. 219 fnset repall                \ Shift F8
  143. 220 fnset kerr                  \ Shift F9      ** Not used **
  144. 221 fnset kerr                  \ Shift F10     ** Not used **
  145.  
  146. 222 fnset kerr                  \ Control F1    ** Not used **
  147. 223 fnset kerr                  \ Control F2    ** Not used **
  148. 224 fnset kerr                  \ Control F3    ** Not used **
  149. 225 fnset kerr                  \ Control F4    ** Not used **
  150. 226 fnset kerr                  \ Control F5    ** Not used **
  151. 227 fnset kerr                  \ Control F6    ** Not used **
  152. 228 fnset kerr                  \ Control F7    ** Not used **
  153. 229 fnset kerr                  \ Control F8    ** Not used **
  154. 230 fnset kerr                  \ Control F9    ** Not used **
  155. 231 fnset kerr                  \ Control F10   ** Not used **
  156.  
  157. 232 fnset kerr                  \ Alt F1        ** Not used **
  158. 233 fnset kerr                  \ Alt F2        ** Not used **
  159. 234 fnset kerr                  \ Alt F3        ** Not used **
  160. 235 fnset kerr                  \ Alt F4        ** Not used **
  161. 236 fnset kerr                  \ Alt F5        ** Not used **
  162. 237 fnset slooa                 \ Alt F6
  163. 238 fnset kerr                  \ Alt F7        ** Not used **
  164. 239 fnset srepa                 \ Alt F8
  165. 240 fnset kerr                  \ Alt F9        ** Not used **
  166. 241 fnset squt                  \ Alt F10
  167.  
  168. \ At the moment I do not know of any keys that will generate the
  169. \ following values.
  170. \                                                       Tom Zimmer
  171.  
  172. 133 fnset kerr                  \ 133           ** Not used **
  173. 134 fnset kerr                  \ 134           ** Not used **
  174. 135 fnset kerr                  \ 135           ** Not used **
  175. 136 fnset kerr                  \ 136           ** Not used **
  176. 137 fnset kerr                  \ 137           ** Not used **
  177. 138 fnset kerr                  \ 138           ** Not used **
  178. 139 fnset kerr                  \ 139           ** Not used **
  179. 140 fnset kerr                  \ 140           ** Not used **
  180. 141 fnset kerr                  \ 141           ** Not used **
  181. 142 fnset kerr                  \ 142           ** Not used **
  182. 154 fnset kerr                  \ 154           ** Not used **
  183. 155 fnset kerr                  \ 155           ** Not used **
  184. 156 fnset kerr                  \ 156           ** Not used **
  185. 157 fnset kerr                  \ 157           ** Not used **
  186. 167 fnset kerr                  \ 167           ** Not used **
  187. 168 fnset kerr                  \ 168           ** Not used **
  188. 169 fnset kerr                  \ 169           ** Not used **
  189. 170 fnset kerr                  \ 170           ** Not used **
  190. 171 fnset kerr                  \ 171           ** Not used **
  191. 179 fnset kerr                  \ 179           ** Not used **
  192. 180 fnset kerr                  \ 180           ** Not used **
  193. 181 fnset kerr                  \ 181           ** Not used **
  194. 182 fnset kerr                  \ 182           ** Not used **
  195. 183 fnset kerr                  \ 183           ** Not used **
  196. 184 fnset kerr                  \ 184           ** Not used **
  197. 185 fnset kerr                  \ 185           ** Not used **
  198. 186 fnset kerr                  \ 186           ** Not used **
  199. 197 fnset kerr                  \ 197           ** Not used **
  200. 198 fnset kerr                  \ 198           ** Not used **
  201. 202 fnset kerr                  \ 202           ** Not used **
  202. 204 fnset kerr                  \ 204           ** Not used **
  203. 206 fnset kerr                  \ 206           ** Not used **
  204. 242 fnset kerr                  \ 242           ** Not used **
  205.  
  206. only forth also definitions
  207.  
  208. \S      Don't compile the rest of this file.
  209.  
  210.  
  211.         Function Descriptions for the above key definitions
  212.  
  213. tscrn           Move to top of screen.
  214. bscrn           Move to bottom of screen.
  215. dnln            Move down a line
  216. upln            Move up   a line
  217. lchr            Move left  a character
  218. rchr            Move right a character
  219. lwrd            Move left  a word
  220. rwrd            Move right a word
  221. pdn             Move down one screen full
  222. pup             Move up   one screen full
  223. shoml           Move to the beginning of the current line.
  224. sendl           Move to the end       of the current line.
  225. shom            Move to the beginning of the file.
  226. send            Move to the end       of the file.
  227.  
  228. fdel            Delete current character under cursor
  229. bdel            Delete character before cursor
  230. wdel            Delete word forward starting at cursor
  231. ldel            Delete all of current edit line
  232. excutx          Delete all marked lines of text, MARK sets start.
  233.                   Cuts all lines to the file TEMP.SEQ
  234.                   Prompts for a filename if SHIFT is held down.
  235.  
  236. shelp           Display the first of two help screens.
  237.  
  238. pmenux          Enter print menu.
  239.  
  240. exportx         Copy the portion of the current file starting at the
  241.                   last MARK, until the cursor line to the file TEMP.SEQ.
  242.                   Prompts for a filename if Shift is held down.
  243. importx         Insert the file TEMP.SEQ at the cursor, or allow
  244.                   selection of a file if Shift is held down.
  245. sgetl           Get a line from MARK to current cursor position.
  246.  
  247. stab            Insert spaces up to next tab setting
  248. sbtab           Move back to previous tab position.
  249. tabxp           Expand tabs in entire file to spaces.
  250.  
  251. ^cc             Insert the value of any key following this command.
  252.  
  253. joinln          Join this line and next line.
  254. spltln          Split current line at cursor into two lines
  255.  
  256. kerr            Key error, beeps
  257.  
  258. sloon           Search for name with prompt for text.
  259. slooa           Search again for same text.
  260. sloob           Search backwards for last text searched for.
  261.  
  262. srepn           Replace searched text with prompt for text.
  263. srepa           Replace again with same text.
  264. repall          Replace all occurances of found text with replace text,
  265.                   no prompting.
  266.  
  267. nln             Return, go down to next line.
  268.  
  269. sclup           Scroll the screen up,   leaving cursor on same screen line.
  270. scldn           Scroll the screen down, leaving cursor on same screen line.
  271.  
  272. lmset           Set left margin to current cursor position.
  273. lmset           Set the left margin to current cursor position
  274. tabset          Set the tab increment to multiples of the current column.
  275. smrk            Set the MARK for copy lines, or export.
  276.  
  277. updt            Save changes to disk and continue editing
  278. sesc            Terminate edit and save changes unless Shift is being held
  279.                   down, then terminate edit without saving changes.
  280. squt            Terminate the edit, and discard all changes.
  281.  
  282. itgl            Toggle between insert and overwrite mode
  283.  
  284. wudel           Undelete the most recent word deleted.
  285.                   repeatable up to 256 bytes.
  286. lundel          Undelete the last line deleted, upto 50 lines.
  287.  
  288. wr->fl          Write all of current file to a new file which will
  289.                 be prompted for.
  290.  
  291.  
  292.