home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / source / editset.seq < prev    next >
Text File  |  1991-02-28  |  14KB  |  287 lines

  1. \ EDITSET.SEQ   Set the editor key assignments          by Tom Zimmer
  2.  
  3. comment:
  4.  
  5.   The file EDITSET.SEQ contains the command key definitions for the
  6. SED editor. You can change these assignments, to redefine how the
  7. editor works.
  8.  
  9.   See the end of EDITSET.SEQ for a description of the functions
  10. available in the editor.
  11.  
  12. comment;
  13.  
  14. editor definitions
  15.  
  16.         \ control key function table
  17.  
  18. control @ ctlset kerr           \               ** Not used **
  19. control A ctlset lwrd           \ Control A     left word
  20. control B ctlset jstfy          \ Control B     paragraph justify
  21. control C ctlset pdn            \ Control C     page down
  22. control D ctlset rchr           \ Control D     right character
  23. control E ctlset upln           \ Control E     up line
  24. control F ctlset rwrd           \ Control F     right word
  25. control G ctlset fdel           \ Control G     forward delete
  26. control H ctlset bdel           \ Control H     Back Space
  27. control I ctlset stab           \ Control I     TAB
  28. control J ctlset Ctrl-J         \ Control J     Spawn DOS shell, Ctrl-Enter
  29. control K ctlset kerr           \ Control K     ** Not used **
  30. control L ctlset lmset          \ Control L     set left margin
  31. control M ctlset browse-nln     \ Control M     Enter handler
  32. control N ctlset spltln         \ Control N     split line at cursor
  33. control O ctlset sednew         \ Control O     open a new file
  34. control P ctlset kerr           \ Control P     ** Not used **
  35. control Q ctlset kerr           \ Control Q     ** Not used **
  36. control R ctlset pup            \ Control R     page up
  37. control S ctlset lchr           \ Control S     left character
  38. control T ctlset wdel           \ Control T     word delete
  39. control U ctlset updt           \ Control U     save changes and continue
  40. control V ctlset itgl           \ Control V     insert toggle on/off
  41. control W ctlset sclup          \ Control W     scroll screen up
  42. control X ctlset dnln           \ Control X     down line
  43. control Y ctlset ldel           \ Control Y     line delete
  44. control Z ctlset scldn          \ Control Z     scroll screen down
  45. control [ ctlset sedesc         \ ESCape        ESC menu handler
  46. control \ ctlset shomem         \ Control \     display computers memory map
  47. control ] ctlset kerr           \ Control ]     ** Not used **
  48. control ^ ctlset kerr           \ Control ^     ** Not used **
  49. control _ ctlset kerr           \ Control _     ** Not used **
  50.  
  51.  
  52. 127 fnset fdel          \ Control Backspace
  53. 143 fnset sbtab         \ Shift-TAB     Back TAB
  54. 158 fnset appendx       \ Alt-A         Append to file
  55. 176 fnset wordbrowse    \ Alt-B         Browse word under cursor
  56. 174 fnset exportx       \ Alt-C         Copy to file
  57. 160 fnset kerr          \ Alt-D         ** Not used **
  58. 146 fnset wordedit      \ Alt-E         Edit word under cursor
  59. 161 fnset kerr          \ Alt-F         ** Not used **
  60. 162 fnset alt-g         \ Alt-G         Goto- line,page,paragraph
  61. 163 fnset wordhelp      \ Alt-H         show help on word under cursor
  62. 151 fnset kerr          \ Alt-I         ** Not used **
  63. 164 fnset joinln        \ Alt-J         Join lines
  64. 165 fnset kerr          \ Alt-K         ** Not used **
  65. 166 fnset lftjust       \ Alt-L         left justification
  66. 178 fnset NOOP          \ Alt-M         Not usable, Make macro
  67. 177 fnset nxtbrowse     \ Alt-N         next browse
  68. 152 fnset alt-O         \ Alt-O         Other-case conversion, tab expand
  69. 153 fnset pmenux        \ Alt-P         Print menu
  70. 144 fnset shom          \ Alt-Q         Home to top of file
  71. 147 fnset NOOP          \ Alt-R         Not usable, Repeat a macro
  72. 159 fnset sedset        \ Alt-S         Setup-right margin, window size
  73. 148 fnset tabset        \ Alt-T         Set TAB increment
  74. 150 fnset wudel         \ Alt-U         Word undelete
  75. 175 fnset importx       \ Alt-V         Paste from file
  76. 145 fnset wr->fl        \ Alt-W         Write memory to a new file
  77. 173 fnset excutx        \ Alt-X         Cut to a file
  78. 149 fnset lundel        \ Alt-Y         Line undelete
  79. 172 fnset send          \ Alt-Z         Goto End of file
  80.  
  81. 248 fnset kerr          \ Alt 1         ** Not used **
  82. 249 fnset kerr          \ Alt 2         ** Not used **
  83. 250 fnset kerr          \ Alt 3         ** Not used **
  84. 251 fnset kerr          \ Alt 4         ** Not used **
  85. 252 fnset kerr          \ Alt 5         ** Not used **
  86. 253 fnset kerr          \ Alt 6         ** Not used **
  87. 254 fnset kerr          \ Alt 7         ** Not used **
  88. 255 fnset ecmdtgl       \ Alt 8         show edit command toggle
  89. 128 fnset kerr          \ Alt 9         ** Not used **
  90. 129 fnset kerr          \ Alt 0         ** Not used **
  91.  
  92. 130 fnset kerr          \ Alt -         ** Not used **
  93. 131 fnset kerr          \ Alt =         ** Not used **
  94.  
  95. 199 fnset shoml         \ HOME  key     beginning of line
  96. 207 fnset sendl         \ END   key     end of line
  97.  
  98. 200 fnset upln          \ Up    Arrow   up a line
  99. 208 fnset dnln          \ Down  Arrow   down a line
  100. 203 fnset lchr          \ Left  Arrow   left a character
  101. 205 fnset rchr          \ Right Arrow   right a character
  102.  
  103. 201 fnset pup           \ PgUp          page up
  104. 209 fnset pdn           \ PgDn          page down
  105.  
  106. 210 fnset itgl          \ Insert key    insert mode toggle on/off
  107. 211 fnset fdel          \ Delete key    delete char under cursor
  108.  
  109. 243 fnset lwrd          \ Control Left Arrow    word left
  110. 244 fnset rwrd          \ Control Right Arrow   word right
  111. 247 fnset shom          \ Control HOME          beginning of file
  112. 245 fnset send          \ Control END           End of file
  113. 132 fnset sclup         \ Control PgUp          Scroll screen up
  114. 246 fnset scldn         \ Control PgDn          Scroll screen down
  115.  
  116. 187 fnset helpF1        \ F1=HELP
  117. 187 =: helpkey          \ Assign F1 as the HELPKEY value.
  118.                         \ If you set another key as HELP, then
  119.                         \ change the 187 to the new value of help.
  120.  
  121. 188 fnset tscrn         \ F2            top of screen
  122. 189 fnset smrk          \ F3            set mark
  123. 190 fnset bscrn         \ F4            bottom of screen
  124. 191 fnset sgetl         \ F5            get line from mark
  125. 192 fnset sloon         \ F6            search/find (prompts for string)
  126. 193 fnset drawlin       \ F7            line drawing mode toggle
  127. 194 fnset srepn         \ F8            replace (prompts for string)
  128. 195 fnset wordbrowse    \ F9            browse word under cursor
  129. 196 fnset sesc          \ F10           save and exit
  130.  
  131. 212 fnset flipfiles     \ Shift F1      select one of all open files
  132. 213 fnset kerr          \ Shift F2      ** Not used **
  133. 214 fnset kerr          \ Shift F3      ** Not used **
  134. 215 fnset kerr          \ Shift F4      ** Not used **
  135. 216 fnset kerr          \ Shift F5      ** Not used **
  136. 217 fnset sloob         \ Shift F6      search backwards
  137. 218 fnset sortlin       \ Shift F7      sort paragraph case sensitive
  138. 219 fnset repall        \ Shift F8      replace all occurances
  139. 220 fnset browsetgl     \ Shift F9      toggle browse on/off
  140. 221 fnset sescall       \ Shift F10     exit all edit/browses
  141.  
  142. 222 fnset kerr          \ Control F1    ** Not used **
  143. 223 fnset kerr          \ Control F2    ** Not used **
  144. 224 fnset kerr          \ Control F3    ** Not used **
  145. 225 fnset kerr          \ Control F4    ** Not used **
  146. 226 fnset kerr          \ Control F5    ** Not used **
  147. 227 fnset sloow         \ Control F6    search word under cursor
  148. 228 fnset kerr          \ Control F7    ** Not used **
  149. 229 fnset kerr          \ Control F8    ** Not used **
  150. 230 fnset wordfrom      \ Control F9  word was loaded from
  151. 231 fnset kerr          \ Control F10   ** Not used **
  152.  
  153. 232 fnset togglefiles   \ Alt F1   rotate through all open files
  154. 233 fnset tmscrn        \ Alt F2   goto top middle of screen
  155. 234 fnset hsrcschr      \ Alt F3   insert source hyper link
  156. 235 fnset bmscrn        \ Alt F4   goto bottom middle of screen
  157. 236 fnset hdstschr      \ Alt F5   insert destination hyper link
  158. 237 fnset slooa         \ Alt F6   search/find again
  159. 238 fnset sortlin       \ Alt F7   sort paragraph lines
  160. 239 fnset srepa         \ Alt F8   replace again
  161. 240 fnset worddefer     \ Alt F9   Edit word through defered word
  162. 241 fnset squt          \ Alt F10  discard edit and quit
  163.  
  164. \ At the moment I do not know of any keys that will generate the
  165. \ following values.
  166. \                                                       Tom Zimmer
  167.  
  168. 133 fnset kerr          \ 133           ** Not used **
  169. 134 fnset kerr          \ 134           ** Not used **
  170. 135 fnset kerr          \ 135           ** Not used **
  171. 136 fnset kerr          \ 136           ** Not used **
  172. 137 fnset kerr          \ 137           ** Not used **
  173. 138 fnset kerr          \ 138           ** Not used **
  174. 139 fnset kerr          \ 139           ** Not used **
  175. 140 fnset kerr          \ 140           ** Not used **
  176. 141 fnset kerr          \ 141           ** Not used **
  177. 142 fnset kerr          \ 142           ** Not used **
  178. 154 fnset kerr          \ 154           ** Not used **
  179. 155 fnset kerr          \ 155           ** Not used **
  180. 156 fnset kerr          \ 156           ** Not used **
  181. 157 fnset kerr          \ 157           ** Not used **
  182. 167 fnset kerr          \ 167           ** Not used **
  183. 168 fnset kerr          \ 168           ** Not used **
  184. 169 fnset kerr          \ 169           ** Not used **
  185. 170 fnset kerr          \ 170           ** Not used **
  186. 171 fnset kerr          \ 171           ** Not used **
  187. 179 fnset kerr          \ 179           ** Not used **
  188. 180 fnset kerr          \ 180           ** Not used **
  189. 181 fnset kerr          \ 181           ** Not used **
  190. 182 fnset kerr          \ 182           ** Not used **
  191. 183 fnset kerr          \ 183           ** Not used **
  192. 184 fnset kerr          \ 184           ** Not used **
  193. 185 fnset kerr          \ 185           ** Not used **
  194. 186 fnset kerr          \ 186           ** Not used **
  195. 197 fnset kerr          \ 197           ** Not used **
  196. 198 fnset kerr          \ 198           ** Not used **
  197. 202 fnset kerr          \ 202           ** Not used **
  198. 204 fnset kerr          \ 204           ** Not used **
  199. 206 fnset kerr          \ 206           ** Not used **
  200. 242 fnset kerr          \ 242           ** Not used **
  201.  
  202. forth definitions
  203.  
  204. \S      Don't compile the rest of this file.
  205.  
  206.  
  207.         Function Descriptions for the above key definitions
  208.  
  209.  
  210. Alt-O           Other options- case conversion, tab expand etc.
  211. Ctrl-J          DOS command shell spawn
  212. ^cc             Insert the value of any key following this command.
  213. alt-O           Other-case conversion, tab expand
  214. alt-g           Goto- line,page,paragraph
  215. appendx         Append to file
  216. bdel            Delete character before cursor
  217. browse-nln      Enter handler
  218. browsetgl       toggle browse on/off
  219. bscrn           Move to bottom of screen.
  220. dnln            Move down a line
  221. drawlin         Enter line drawing mode until ESC pressed.
  222. excutx          Delete all marked lines of text, MARK sets start.
  223. exportx         Copy the marked portion to a file
  224. fdel            Delete current character under cursor
  225. flipfiles       select one of all open files
  226. hdstschr        insert destination hyper link
  227. hsrcschr        insert source hyper link
  228. importx         Paste the file TEMP.SEQ at the cursor
  229. itgl            Toggle between insert and overwrite mode
  230. joinln          Join this line and next line.
  231. jstfy           paragraph justify
  232. kerr            Key error, beeps
  233. l>lcase         Convert the current line to lower case
  234. l>ucase         Convert the current line to uppercase
  235. lchr            Move left  a character
  236. ldel            Delete all of current edit line
  237. lftjust         left justification
  238. lmset           Set the left margin to current cursor position
  239. lundel          Undelete the last line deleted, upto 50 lines.
  240. lwrd            Move left  a word
  241. nln             Return, go down to next line.
  242. pastedatetime   Paste the date and time at the cursor.
  243. pdn             Move down one screen full
  244. pmenux          Enter print menu.
  245. pup             Move up   one screen full
  246. rchr            Move right a character
  247. repall          Replace all occurances of found text with replace text
  248. rwrd            Move right a word
  249. sbtab           Move back to previous tab position.
  250. scldn           Scroll the screen down, leaving cursor on same screen line.
  251. sclup           Scroll the screen up,   leaving cursor on same screen line.
  252. sedesc          ESC menu handler
  253. sednew          open a new file
  254. sedset          Setup-right margin, window size
  255. send            Move to the end       of the file.
  256. sendl           Move to the end       of the current line.
  257. sesc            Terminate edit and save changes
  258. sescall         exit all edit/browses
  259. sgetl           Get a line from MARK to current cursor position.
  260. shelp           Opens the Help browser
  261. shom            Move to the beginning of the file.
  262. shoml           Move to the beginning of the current line.
  263. slooa           Search again for same text.
  264. sloob           Search backwards for last text searched for.
  265. sloon           Search for name with prompt for text.
  266. smrk            Set the MARK for copy lines, or export.
  267. sortlin         Sort the current paragraph lines on the current column.
  268. spltln          Split current line at cursor into two lines
  269. squt            Terminate the edit, and discard all changes.
  270. srepa           Replace again with same text.
  271. srepn           Replace searched text with prompt for text.
  272. stab            Insert spaces up to next tab setting
  273. tabset          Set the tab increment to multiples of the current column.
  274. tabxp           Expand tabs in entire file to spaces.
  275. togglefiles     rotate through all open files
  276. tscrn           Move to top of screen.
  277. updt            Save changes to disk and continue editing
  278. upln            Move up a line
  279. wdel            Delete word forward starting at cursor
  280. wordbrowse      browse word under cursor
  281. worddefer       Edit word through defered word
  282. wordedit        Edit word under cursor
  283. wordhelp        show help on word under cursor
  284. wr->fl          Write all of current file to a new filename
  285. wudel           Undelete the most recent word deleted.
  286.  
  287.