home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / WP / WP036.ZIP / PEDIT.HLP < prev    next >
Text File  |  1991-07-01  |  43KB  |  540 lines

  1. ^^MOVE TOP                                                                    
  2. This command positions the cursor to the first line of the buffer,            
  3. scrolling or repainting the screen as necessary. pEDIT keeps all text in      
  4. memory, making it very fast to move to the top of the buffer from any         
  5. point in the buffer.                                                          
  6. ^^MOVE BOTTOM                                                                 
  7. This function moves the cursor to the dummy last line at the end of the       
  8. buffer. The screen will scroll or repaint as required.                        
  9. ^^MOVE HOME                                                                   
  10. The action of MoveHome depends on the position of the cursor within the       
  11. current line. If the cursor is not at the beginning of the line, it will      
  12. move there. If it is at the start of a line, it will move to the start of     
  13. the previous line. This command is normally bound to the <Home> key.          
  14. ^^MOVE END                                                                    
  15. The action of MoveEnd depends on the position of the cursor within the        
  16. current line. If the cursor is not at the end of the line, it will move       
  17. there. If it is at the end of a line, it will move to the end of the next     
  18. line. This command is normally bound to the <End> key.                        
  19. ^^MOVE UP                                                                     
  20. Moves the cursor up one line in the current buffer. There is no action if     
  21. the cursor is already on the first line of the buffer. Note that pEDIT        
  22. attempts to keep the cursor as close to the same column as possible. The      
  23. command is normally bound to the <Up> key.                                    
  24. ^^MOVE DOWN                                                                   
  25. MoveDown moves the cursor down one line in the current buffer. The cursor     
  26. cannot move if it is already on the dummy last line of the buffer. pEDIT      
  27. will keep the cursor as close as possible to the same column. This command    
  28. is normally bound to the <Down> key.                                          
  29. ^^MOVE LEFT                                                                   
  30. Moves the cursor left one character position. If the cursor is at the         
  31. beginning of a line, it will wrap to the end of the previous line. This       
  32. command is normally bound to the <Left> key.                                  
  33. ^^MOVE RIGHT                                                                  
  34. Moves the cursor right one character position. If the cursor is at the end    
  35. of a line, it will wrap to the beginning of the next line. This command is    
  36. normally bound to the <Right> key.                                            
  37. ^^MOVE WORD                                                                   
  38. MoveWord will move the cursor to the beginning of the next word in the        
  39. current direction. If the direction is Forward, it will move toward the       
  40. end of the buffer; if the direction is Reverse, toward the beginning of       
  41. the buffer.                                                                   
  42.                                                                               
  43. The screen will scroll or repaint depending on the state of Select. If        
  44. Select is active, the screen will be redisplayed. If Select is not active,    
  45. scrolling will take place to keep the cursor on the fourth line from the      
  46. top or bottom of the window.                                                  
  47. ^^INSERT CHAR                                                                 
  48. This is the default when one of the typing keys is pressed. In Insert         
  49. mode, the character will be inserted into the buffer at the current cursor    
  50. position; text to the right is "shoved over" to make room. In Overstrike      
  51. mode, the character is simply overwritten.                                    
  52.                                                                               
  53. pEDIT uses automatic word wrap to keep text between the defined margins as    
  54. you type. If a word will not fit inside the current right margin, it will     
  55. be moved to the start of the next line. The first line of a paragraph will    
  56. be automatically indented if the PIndent parameter is set.                    
  57.                                                                               
  58. When the Tab key is pressed, the cursor will move to the next tab stop.       
  59. pEDIT supports only tab stops at every eighth column. Control characters      
  60. display as a caret (^) followed by the displayable character, i.e. Ctrl-A     
  61. shows as ^A.                                                                  
  62. ^^OPEN LINE                                                                   
  63. This function opens up a new (empty) line for text insertion. The end         
  64. result is the same as pressing Enter followed by MoveLeft except that         
  65. there will be no indenting.                                                   
  66. ^^FILL PARAGRAPH                                                              
  67. Reformats a paragraph or portion of a paragraph to fit within the defined     
  68. margins. Paragraph indenting, if any, is honored for the first line. Use      
  69. this command after you have inserted or deleted text or changed margins.      
  70.                                                                               
  71. The SetMargins and SetPIndent commands are used to set the margins and        
  72. paragraph indent, respectively. Reformatting begins at the current line       
  73. and stops at the end of the paragraph. A paragraph is defined as contig-      
  74. uous text bounded by empty lines both above and below.                        
  75. ^^INDENT                                                                      
  76. This function is very useful in programming when you want to indent a         
  77. section of code in or out without having to manually edit each line.          
  78. Indenting is by levels where one level is 4 character positions or one-       
  79. half a tab stop. Indent uses tabs and spaces to indent the line to the        
  80. desired offset.                                                               
  81.                                                                               
  82. To use indent (1) position the cursor to the start of the first line, (2)     
  83. toggle Select on, (3) highlight the entire range of lines to be indented      
  84. and (4) issue the "INDENT" or "INDENT n" command. Specify the number of       
  85. levels (n) as a positive or negative integer - positive for 'out' (toward     
  86. the right), negative for 'in'.                                                
  87. ^^AUTO INDENT                                                                 
  88. This function is very useful in programming. It is used to automatically      
  89. indent a new line the same as the previous line. pEDIT uses the same          
  90. leading whitespace (spaces and tabs) as the previous line. AutoIndent is      
  91. normally used at the end of a line but the command can be issued anywhere.    
  92. The command is normally bound to <Ctrl-Enter>.                                
  93. ^^CENTER LINE                                                                 
  94. This command centers the current line - the line the cursor is on -           
  95. between the existing margins. Only spaces are used to indent the line to      
  96. the appropriate position.                                                     
  97. ^^CAPITAL WORD                                                                
  98. Capitalizes the current word starting at the current position of the          
  99. cursor within the word. The case change does not start at the beginning of    
  100. the word; this is to allow, for example, 'Compuserve' to be changed to        
  101. 'CompuServe'.                                                                 
  102. ^^LOWER WORD                                                                  
  103. This command converts the current word to lower-case starting at the          
  104. current position within the word. All characters from the cursor to the       
  105. end of the word will be changed to lower-case.                                
  106. ^^UPPER WORD                                                                  
  107. UpperWord converts the current word to upper-case, again starting at the      
  108. current character position and not at the beginning of the word.              
  109. ^^QUOTE CHAR                                                                  
  110. This function is used to enter special characters into the text. pEDIT        
  111. prompts you with "Press key to be added: "; at this point press one of the    
  112. special keys. For example, to insert a form feed (Ctrl-L, Ascii 12) press     
  113. Ctrl-V followed by Ctrl-L. The character will show as '^L' on the screen.     
  114.                                                                               
  115. The feature can also be used with Find and Replace. To find a line feed       
  116. (Ctrl-J, Ascii 10) for example, press the DoCommand key and enter "FIND       
  117. ^V^J".                                                                        
  118.                                                                               
  119. Note that extended keys such as the PC keypad and function keys cannot be     
  120. quoted. The PC graphics characters - those above Ascii 127 - are inserted     
  121. in a special way. Hold down the Alt key and enter the decimal value of the    
  122. character using the numeric keypad only; release the Alt key when done.       
  123. ^^TRANS CHAR                                                                  
  124. This command transposes (swaps) two characters of text within a line. The     
  125. cursor must be on the second character when you issue the command. The        
  126. cursor cannot be positioned past the end of the line.                         
  127. ^^ERASE CHAR                                                                  
  128. Deletes the current character - the character the cursor is on. The action    
  129. is dependent on the current mode. In Insert mode, the character is deleted    
  130. and text to the right of the cursor is shifted left to "fill in the hole".    
  131. In Overstrike mode, the character is replaced by a space.                     
  132. ^^ERASE PREV                                                                  
  133. Deletes the previous character - the character to the left of the cursor.     
  134. In Insert mode, the character is deleted and text to the right of the         
  135. cursor is again shifted toward the left. In Overstrike mode, the character    
  136. is replaced by a space.                                                       
  137.                                                                               
  138. ErasePrev is permanently bound to the Backspace key which cannot be           
  139. redefined. BackSpace therefore functions the same as it does at the DOS       
  140. (Operating System) level.                                                     
  141. ^^ERASE WORD                                                                  
  142. EraseWord deletes text from the current position in a word to the end of      
  143. the word. The current direction (Forward/Reverse) does not affect the         
  144. action; deletion is always toward the end of the word.                        
  145.                                                                               
  146. The current mode also has no effect on EraseWord. The entire word (or         
  147. portion of a word) will be erased.                                            
  148. ^^ERASE LINE                                                                  
  149. Erases an entire line or a portion of a line. If the cursor is at the         
  150. beginning of a line, the entire line - including the end of line marker -     
  151. is erased and stored in the text buffer. If the cursor is not at the          
  152. beginning of a line, deletion is from the current position to the end of      
  153. the line.                                                                     
  154. ^^RESTORE TEXT                                                                
  155. This command restores the text last deleted by EraseWord or EraseLine.        
  156. This text is stored in a special text buffer for later restoration. This      
  157. text buffer is rebuilt after every action so only the last erasure can be     
  158. restored.                                                                     
  159. ^^FIND                                                                        
  160. Used to search for a text string. To initiate this function, press the        
  161. Find key and respond to "String to find" or press DoCommand and enter         
  162. "FIND <text>". The direction of the search will be in the current             
  163. direction. An executing Find operation can be cancelled by pressing the       
  164. Abort key.                                                                    
  165.                                                                               
  166. If the target string is all lowercase, the operation will be case-            
  167. insensitive; that is 'pedit' will match 'pedit', 'pEDIT' and 'PEDIT'. If,     
  168. however, the target contains any uppercase characters, the match will be      
  169. exact, i.e. 'pEDIT' matches only 'pEDIT'.                                     
  170.                                                                               
  171. Special symbols are used to match beginning of line (bol) and end of line     
  172. (eol). Use '\\<' for bol and '\\>' for eol. For example, '.\\>' matches a     
  173. period only if it is at the end of a line.                                    
  174. ^^FINDNEXT                                                                    
  175. This command will find the next occurrence of the last search string you      
  176. specified. It is advisable to have Findnext bound to a key so only a          
  177. single key press is required to repeat the last search operation.             
  178. ^^REPLACE                                                                     
  179. pEDIT has a very powerful search and replace function. To initiate it,        
  180. either press the Replace key and reply to the "Old string:" and "New          
  181. string:" prompts, or press DoCommand and enter "REPLACE <old> <new>".         
  182.                                                                               
  183. pEDIT will search for each occurrence of 'old' and prompt you with            
  184. "Replace (Y)es (N)o (A)ll (L)ast (Q)uit: "                                    
  185.                                                                               
  186.     Y, Enter - replace this occurrence                                        
  187.     N        - skip this replacement                                          
  188.     A        - replace all occurrences from this point                        
  189.     L        - make this the last replacement and quit                        
  190.     Q        - quit.                                                          
  191.                                                                               
  192. Matching the old string will follow the rules listed for the Find command.    
  193. The same wild cards as Find are permitted in the 'old' string only.           
  194. ^^GET FILE                                                                    
  195. This command loads in a new file for editing. pEDIT supports wildcard         
  196. file specifications of the type '*.*' and '*.BAS'. If more than one file      
  197. matches the specification, you will be presented with a list of all           
  198. matching file names in alpha order. Use the arrow keys to highlight the       
  199. desired file and press Enter. Press the Abort key to cancel.                  
  200.                                                                               
  201. Once a file has been selected, pEDIT will create a buffer for the file and    
  202. load its contents into memory. The status line will show the new buffer       
  203. name and the first screen of text, if any, will be displayed. If no           
  204. matching file exists, pEDIT will display "Creating file" and present an       
  205. empty screen.                                                                 
  206.                                                                               
  207. pEDIT allows a total of 6 user buffers.                                       
  208. ^^INCLUDE FILE                                                                
  209. Reads in the specified file from disk and inserts it into the buffer          
  210. starting at the current cursor location. The result is the same as if the     
  211. user typed in the text contained in the file.                                 
  212.                                                                               
  213. Include File should be used only for relatively small files. The function     
  214. uses the normal InsertChar routine, not the much faster GetFile which         
  215. loads text directly into memory.                                              
  216. ^^WRITE FILE                                                                  
  217. WriteFile is used to save the contents of the current buffer to disk          
  218. without terminating the editing session. If no associated file name has       
  219. been specified, pEDIT will ask for one.                                       
  220.                                                                               
  221. pEDIT verifies that there is sufficient disk space for the file BEFORE        
  222. starting the save operation. The section on Error Handling has a full         
  223. description of what to do if you get an error while saving a file.            
  224.                                                                               
  225. You can change the name of the associated file at any time by using the       
  226. RenameFile command.                                                           
  227. ^^RENAME FILE                                                                 
  228. This command changes the name of the disk file associated with the current    
  229. buffer. The new name will be used at the time of the next WriteFile           
  230. operation.                                                                    
  231.                                                                               
  232. Use RenameFile when you want to save a file under a name other than the       
  233. one the it was called up under.                                               
  234. ^^SHOW BUFFER                                                                 
  235. This command displays detailed information about the current buffer: the      
  236. buffer name, associated file name, current mode and direction, number of      
  237. lines and characters of text, etc. The status line also shows the pEDIT       
  238. version number.                                                               
  239. ^^LIST BUFFERS                                                                
  240. This function lists a summary of all defined buffers - the two system         
  241. buffers (COMMAND and DOS) plus up to 6 user buffers. The following items      
  242. are displayed: buffer name, number of lines in the buffer, buffer type        
  243. (System or User), whether or not the buffer has been modified and the name    
  244. of the file associated with the buffer.                                       
  245. ^^BUFFER                                                                      
  246. Use this command to switch between buffers. You will be presented with a      
  247. BUFFER window containing the names of all buffers except the COMMAND          
  248. buffer. The cursor will be positioned on the first User buffer. Use the       
  249. up and down arrow keys to highlight the desired buffer name; press Enter      
  250. to select that buffer.                                                        
  251.                                                                               
  252. It is no longer possible to switch to the COMMAND buffer.                     
  253. ^^TRIM BUFFER                                                                 
  254. This function 'trims' the current buffer by removing trailing blanks from     
  255. all lines of text.                                                            
  256.                                                                               
  257. TrimBuffer is useful in any document where a left margin has been defined.    
  258. pEDIT automatically indents every line to the specified left margin, which    
  259. can result in "empty" lines between paragraphs. These empty lines can take    
  260. up a lot of space in a large document.                                        
  261. ^^CHANGE MODE                                                                 
  262. ChangeMode is used to toggle between Insert and Overstrike modes. If the      
  263. mode is Insert when the command is given, it will change to Overstrike and    
  264. vice versa.                                                                   
  265. ^^CHANGE DIR                                                                  
  266. Use this command to toggle between the Forward and Reverse directions.        
  267. Note that only Find, Findnext, Replace and MoveWord use the buffer            
  268. direction.                                                                    
  269. ^^MARK                                                                        
  270. This function is used to 'mark' a particular place in a buffer so you can     
  271. return to it at some later time. There can be only one marker in each         
  272. buffer. pEDIT tries to stay as close as possible to the original mark as      
  273. text is inserted and deleted.                                                 
  274. ^^GOTO MARK                                                                   
  275. This command moves to the position (line and offset) defined by the last      
  276. Mark command.                                                                 
  277. ^^LINE                                                                        
  278. The Line command is used to display the current line number or move to a      
  279. particular line in the buffer. Enter "LINE" by itself to display the          
  280. current line and number of lines; use "LINE nn" to move to line number nn.    
  281. ^^ONE WINDOW                                                                  
  282. The OneWindow command 'unsplits' the screen. If there are 2 windows on        
  283. screen, the current window - the one the cursor is in - becomes the only      
  284. window. The screen will be repainted to show a full 21 lines of text. The     
  285. line the cursor was on when the command was issued becomes the top line of    
  286. the window.                                                                   
  287. ^^TWO WINDOWS                                                                 
  288. TwoWindows 'splits' the screen if there is only one window visible. Both      
  289. windows will initially show the same 10 lines of the current buffer. The      
  290. cursor will move to the other window anticipating that you want to load in    
  291. another file.                                                                 
  292. ^^OTHER WINDOW                                                                
  293. If the screen is split, this command will move the cursor to the other        
  294. window. The cursor will move to the row and column stored the last time       
  295. the cursor was in the window.                                                 
  296. ^^PREV SCREEN                                                                 
  297. Scrolls the screen up - towards the beginning of the buffer. The number of    
  298. lines scrolled will equal the number of rows on screen - 21 or 10             
  299. depending on the window size. The current direction has no effect on this     
  300. command.                                                                      
  301.                                                                               
  302. If the screen cannot scroll the full amount, the cursor will move up until    
  303. it hits the first line of the buffer. This command is normally bound to       
  304. the <PgUp> key.                                                               
  305. ^^NEXT SCREEN                                                                 
  306. Scrolls the screen down (toward the end of the buffer) by the number of       
  307. rows in the current window. The current direction has no effect. The          
  308. command is normally bound to the <PgDn> key.                                  
  309.                                                                               
  310. If the screen cannot scroll the full amount, the cursor will move until it    
  311. hits the dummy line at the end of the buffer.                                 
  312. ^^SHIFT LEFT                                                                  
  313. The Shift commands provide for horizontal scrolling - the ability to see      
  314. text beyond column 80. ShiftLeft moves the window to the left (toward the     
  315. left margin) the specified number of columns.                                 
  316. ^^SHIFT RIGHT                                                                 
  317. ShiftRight shifts the screen to the right - toward the end of the line -      
  318. by the number of columns you specify. How far the window can be shifted is    
  319. limited only by pEDIT's maximum line length of 32767 characters.              
  320. ^^LEARN                                                                       
  321. The Learn command is used to start recording keystrokes. The recording        
  322. will continue until the Remember command is given. pEDIT will store all       
  323. typing keys, function keys and special keys such as control keys.             
  324.                                                                               
  325. Any keystrokes can be stored in a pEDIT Version 2 key macro. The only         
  326. restriction is that a macro containing a REPEAT command cannot, for           
  327. obvious reasons, itself be repeated.                                          
  328. ^^REMEMBER                                                                    
  329. Remember is used to end the keystroke recording started by Learn. pEDIT       
  330. will ask for a key to bind to; press any of the definable keys on the         
  331. keyboard. You cannot bind to the Tab, Enter or Backspace keys. Only one       
  332. keyboard or dynamic macro can be defined at a time.                           
  333.                                                                               
  334. A macro must not be bound to a key that is contained within the macro. If     
  335. this happens, the macro routine will go into a loop and probably crash the    
  336. system.                                                                       
  337. ^^SAVE MACRO                                                                  
  338. SaveMacro is used to save the currently defined keyboard macro to disk.       
  339. Enter only a file name; pEDIT automatically adds the extension '.PMC'. The    
  340. editor will write the macro file in the directory pointed to by the PEDIT     
  341. environment variable, or if none is defined, in the current directory.        
  342.                                                                               
  343. If a file of the same name already exists, you will be given the chance to    
  344. overwrite it or cancel.                                                       
  345. ^^EXECUTE                                                                     
  346. Execute is used to execute a macro. When this command is issued, the          
  347. keystrokes are 'replayed' as if you entered them. There are two forms of      
  348. this command: one for a dynamic macro, one for a disk macro. See the          
  349. section titled 'Macro Facility' for more information.                         
  350.                                                                               
  351. Use 'EXECUTE' by itself for the single dynamic macro. To execute a disk       
  352. macro, use a command of the form 'EXECUTE filename' where 'filename' is a     
  353. valid DOS file name without an extension. pEDIT automatically adds the        
  354. file type .PMC to all disk macro file names.                                  
  355. ^^SELECT TEXT                                                                 
  356. SelectText is a toggle that turns the select state on/off. If the state is    
  357. off, it will be turned on and vice versa. When active, selected text is       
  358. highlighted in reverse video as the cursor is moved. Select is                
  359. automatically turned off after any RemoveText or StoreText command. To        
  360. cancel the selection, simply issue the command again.                         
  361. ^^REMOVE TEXT                                                                 
  362. This command removes the selected text and stores it in the paste buffer.     
  363. The paste buffer is rebuilt every time RemoveText is invoked so only the      
  364. most recently deleted text is available.                                      
  365. ^^STORE TEXT                                                                  
  366. StoreText is similar to RemoveText except that the text is not removed        
  367. from the buffer. The paste buffer is rebuilt to contain the selected text.    
  368. Use this command whenever you want to make a copy of some text without        
  369. deleting it.                                                                  
  370. ^^INSERT HERE                                                                 
  371. Inserts text from the paste buffer into the current buffer starting at the    
  372. current cursor position. Note that InsertHere can be invoked more than        
  373. once to make multiple copies of the stored text.                              
  374. ^^DO COMMAND                                                                  
  375. When the "Do" key is pressed the editor will respond with the 'Command: '     
  376. prompt. At this point you can enter any valid pEDIT command. Commands can     
  377. be upper- or lower-case or mixed. Note that commands must be entered in       
  378. full with spaces in between words.                                            
  379.                                                                               
  380. The Command line is really a one-line window into the COMMAND buffer. All     
  381. defined keys can be used on the command line for editing the current line     
  382. or recalling previous commands. Use MoveUp and MoveDown to scroll up and      
  383. down through the stored commands.                                             
  384. ^^RECALL                                                                      
  385. Recall is used to recall the last command given via DoCommand. The end        
  386. result is the same as pressing the DoCommand key followed by the up arrow     
  387. with one important difference; the previous command is copied to the          
  388. current command line. The command can of course be edited before pressing     
  389. Enter to begin execution.                                                     
  390. ^^ABORT                                                                       
  391. pEDIT now has a user-definable abort key. It is no longer 'hardwired' to      
  392. Ctrl-C; this conflicted with WordStar which uses Ctrl-C as a command key.     
  393.                                                                               
  394. The abort key should be defined in your initialization file.                  
  395. ^^REFRESH SCREEN                                                              
  396. This command is used to clear and repaint the screen. Use RefreshScreen       
  397. if, for any reason, the screen should be overwritten or otherwise             
  398. obliterated. Everything - including reverse video - will be redrawn.          
  399. ^^DEFINE SHIFT                                                                
  400. This function defines a shift or "lead-in" key for multi-key commands. It     
  401. signals pEDIT when to expect a second keystroke; therefore a shift key        
  402. cannot be a command key by itself.                                            
  403.                                                                               
  404. Normally this command would be specified in pEDIT's init file before other    
  405. key definitions. A maximum of 5 shift keys can be defined.                    
  406. ^^DEFINE KEY                                                                  
  407. Used to dynamically define a key during an editing session. pEDIT will ask    
  408. for a procedure name and a key press. The procedure name is any valid         
  409. pEDIT command entered in full (no abbreviations) with or without              
  410. parameters. An example is "SET SCOPE GLOBAL".                                 
  411.                                                                               
  412. It is best to put key bindings in the initialization file so they are         
  413. automatically defined when the editor is invoked.                             
  414. ^^SHOW KEY                                                                    
  415. Used to show what procedure is bound to a key. pEDIT will prompt for a key    
  416. press and display the name of the procedure, if any, bound to that key.       
  417. ^^LIST KEYS                                                                   
  418. Lists all defined keys and the procedures bound to them. pEDIT will pause     
  419. in between screens; press Enter to continue to the next screen.               
  420. ^^SPAWN                                                                       
  421. This function spawns or shells you to DOS. A second copy of COMMAND.COM is    
  422. loaded into memory to process commands. You may then enter DOS commands       
  423. and do anything you can do at the operating system level. Type 'EXIT' to      
  424. return to the editor exactly as you left it.                                  
  425.                                                                               
  426. If you have a floppy-only system, COMMAND.COM must be available or the        
  427. spawn will fail. Some versions of DOS prior to 3.x have a problem with        
  428. "SHELL" and may not work properly.                                            
  429.                                                                               
  430. pEDIT tries to keep 50-70k of memory free for the Spawn and Dos commands;     
  431. this will not leave sufficient memory for anything but DOS resident           
  432. commands (DIR, TYPE, etc.) and small programs. If more memory is needed,      
  433. use the eXtended Spawn function (XSpawn).                                     
  434. ^^XSPAWN                                                                      
  435. This function serves the same purpose as Spawn but with one important         
  436. extension. All text memory is swapped out to disk, leaving much more          
  437. memory available to DOS. On a machine with 640k, about 350k will be freed     
  438. up - more than enough to compile and run other programs - even another        
  439. copy of pEDIT.                                                                
  440.                                                                               
  441. The restrictions noted for Spawn apply here. Also, you must be careful not    
  442. to delete pEDIT's temporary swap files. See the section titled 'Extended      
  443. DOS Shell' for more information.                                              
  444. ^^REPEAT                                                                      
  445. Repeat lets you repeat any key press up to 32767 times. Only the next         
  446. single key press - typing, function, Ctrl, Alt - is repeated.                 
  447.                                                                               
  448. The repeat count is shown by 'Repeat: ' on the message line. Use BackSpace    
  449. to correct the count; set the count to zero if you wish to cancel.            
  450.                                                                               
  451. You can end a repeat loop by pressing the Abort key.                          
  452. ^^SET AUTOSAVE                                                                
  453. pEDIT has an 'autosave' function that automatically saves your work to        
  454. disk. If autosave is on, pEDIT will periodically do a WriteFile if changes    
  455. have been made. The 'Working . . .' message will appear and the disk          
  456. access light will come on. You will be told how many lines were written.      
  457. The usage is 'SET AUTOSAVE ON|OFF'.                                           
  458. ^^SET COLOR                                                                   
  459. SetColor lets you choose foreground and background colors on a color          
  460. (CGA/EGA/VGA) monitor. For monochrome, the only legal combinations are        
  461. "SET COLOR blk wht" and "SET COLOR wht blk". Here 'blk' and 'wht' refer to    
  462. the mono colors whatever they may be - black and white, black and green,      
  463. etc.                                                                          
  464.                                                                               
  465. The usage is 'SET COLOR fground bground'. See the Appendix for a list of      
  466. valid color code names.                                                       
  467. ^^SET LINES                                                                   
  468. SetLines lets you switch between 25 and 43 line mode on an EGA or VGA         
  469. monitor. These displays can show more than the normal 25 lines of text.       
  470. Note that screen writing and scrolling are generally much slower in 43-       
  471. line mode. The SetLines command cannot be given when the screen is split.     
  472. VGA 50 line mode is not supported. The usage is 'SET LINES 25|43'.            
  473. ^^SET MARGINS                                                                 
  474. This command lets you set left and right text margins. The default margins    
  475. are 1 and 80. The left margin must be greater than zero and the right         
  476. margin has to be greater than the left. The usage is "SET MARGINS left        
  477. right".                                                                       
  478. ^^SET PINDENT                                                                 
  479. Used to set the paragraph indent, i.e. the number of columns by which to      
  480. indent the first line of a paragraph. The usage is "SET PINDNT nn" where      
  481. nn is zero or a positve integer.                                              
  482. ^^SET SCOPE                                                                   
  483. Specifies the "scope" for all Find and Replace operations. If the scope is    
  484. local, only the current buffer will be searched. If the scope is global,      
  485. all user buffers will be searched and 'Global' will show on the status        
  486. line. The format of this command is "SET SCOPE local|global".                 
  487.                                                                               
  488. Things can get out of hand if some buffers are searched in a forward          
  489. direction while others are searched in reverse. For this reason, the          
  490. direction for all buffers is temporarily set to Forward during a global       
  491. search.                                                                       
  492. ^^DOS                                                                         
  493. The Dos function spawns or "shells" a command to DOS for execution. The       
  494. output from the command will be placed in the DOS buffer as text. If only     
  495. one window is on-screen, pEDIT will split the screen and map the DOS          
  496. buffer to the other window.                                                   
  497.                                                                               
  498. A second copy of COMMAND.COM must be loaded into memory to handle the         
  499. request. See Spawn for a discussion of limitations and cautions.              
  500. ^^XDOS                                                                        
  501. The eXtended DOS function (XDos) uses an intelligent DOS shell to free up     
  502. additional memory for the execution of DOS commands. See the description      
  503. of XSpawn and the section titled 'Extended DOS Shell'.                        
  504.                                                                               
  505. A common use of XDos would be to compile a program from within the editor.    
  506. For example, 'XDOS BC TEST /O ;' would be used to compile a QuickBASIC        
  507. program. The compiler output will of course be directed into the DOS          
  508. buffer.                                                                       
  509. ^^HELP                                                                        
  510. The Help command provides full on-line help for every pEDIT command. The      
  511. editor looks for a help file named PEDIT.HLP in the directory defined by      
  512. the PEDIT environment variable, or if none is defined, in the current         
  513. directory.                                                                    
  514.                                                                               
  515. You will be presented with a HELP window containing an alphabetical list      
  516. of all pEDIT commands. Use the arrow keys to highlight the command you        
  517. want help with and press Enter. The function can be cancelled by pressing     
  518. Abort.                                                                        
  519. ^^KEYBOARD                                                                    
  520. This function displays the contents of the file PEDIT.KEY on the screen in    
  521. a KEYBOARD window. The editor looks for this file in the directory            
  522. specified by the PEDIT environment variable, or in the current directory.     
  523. Normally this command is used to display a diagram of your keyboard and/or    
  524. a list of the keys you have defined.                                          
  525. ^^RULER                                                                       
  526. Toggles an 80-column on-screen ruler on and off. The ruler temporarily        
  527. overwrites the status line.                                                   
  528. ^^QUIT                                                                        
  529. Use the Quit command to abort an editing session. Abort MEANS abort - any     
  530. changes you have made will be lost. If any User buffers have been             
  531. modified, pEDIT gives you the option of not quitting by displaying            
  532. "Buffer(s) modified - quit (Y/N)? ". Enter Y to abort, N to cancel the        
  533. abort and resume editing.                                                     
  534. ^^EXIT                                                                        
  535. The Exit command terminates the editing session and returns you to DOS.       
  536. The current buffer is automatically written to disk if it has been            
  537. modified. If any other user buffers have been altered, pEDIT asks you one     
  538. at a time if you want to write them. Answer Y to save the buffer, N to        
  539. skip it.                                                                      
  540.