home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / funkybox.zip / HORNBOOK.DOC < prev    next >
Text File  |  1983-04-11  |  16KB  |  320 lines

  1. COPY THIS FILE ONTO SEVERAL DISKS AND MAKE A HARD COPY PRINT OUT
  2. *********************************************************************
  3.  
  4.              E N H A N C E D  D O S   H O R N B O O K 
  5.  
  6.                 IBM-PC  EDLIN      PAGE  I  OF  V
  7.  
  8. *********************************************************************
  9.  
  10. The HORNBOOK is another DOS service tutorial in the series titled
  11. DISKLINK-DIRECTORY and is prepared and distributed by PEOPLE SYSTEMS,
  12. LTD.(c) 1983. 78 Maplevale Drive, Woodbridge, CT 06525. 203-393-3913
  13.  
  14. We call these service programs because they are useful to many people,
  15. and they are easy to learn and use. DOS and EDLIN have many 
  16. powerful facilities that this tutorial is designed to explain and
  17. expand on the DOS manual. With its few minor faults EDLIN is
  18. still worth taking the time to get familiar with even if you own an-
  19. other Word Processor ( W.P.). You already know the keys, so why not?
  20.  
  21. The HORNBOOK will demonstrate  some enhanced command procedures such
  22. as REPEAT line, MOVE line, SWAP line, and SPLIT line. You will learn
  23. the DOS operation of two keyboard buffers. We will call them command
  24. buffer  and line buffer. After this news we will also offer you some
  25. homespun tips on making your EDLIN usage easier and faster, with less
  26. room for error and confusion. There is a section on EDLIN WARNINGS
  27. that can prove beneficial to DOS users, and finally a "SCORE CARD"
  28. for EDLIN to keep handy for your use. However, you wont need it for 
  29. long after you play with EDLIN and DOS  for a while.
  30.  
  31. It is interesting to note that several of these commands have been
  32. implemented in DOS 2.0 along with a block move. Try them both ways,
  33. you can still use them  with the F3 key if you don't like the DOS 2.0.
  34.  
  35. Although most IBM-PC users have had practice with some EDLIN usage
  36. and are familiar with the DOS manual, there is no substitute for
  37. practising with sample entries to get acquainted without the pressure
  38. of losing valuable data if an accident occurs. Users have said that 
  39. they tried DOS-EDLIN but gave it up when it lost lines or reversed 
  40. them or lost data when the disk was too full. BASIC has a full-screen
  41. editor that is easier to use, BUT there are no Search or Replace calls.
  42.  
  43. Of course, salepeople wanted to sell full screen oriented W. P.s and
  44. put down EDLIN because it was a  simple line editor, without a lot
  45. of bells and whistles (that many people never need or use). Perhaps,
  46. because it was free, users took its value lightly and never got fam-
  47. iliar with the super-speed SEARCH and REPLACE commands. They can whiz
  48. through a file almost instantly and come up with the answers before
  49. any BASIC programming could ever complete the task.
  50.  
  51. We all are familiar with EDLIN's limitations but some aren't aware of
  52. EDLIN's productivity and easy usage, because they didn't try it long
  53. enough to really get over the difficult period during the first few
  54. hours of use. All right, EDLIN doesn't right justify paragraphs, but
  55. EDLIN doesn't reformat the line so that it looks like the typist was
  56. either drunk or stupid. Finding a $ at the end of a line and the num-
  57. bers over on the beginning of the next line is hard to accept.
  58.  
  59. Users say they want to see the page in final form, before printing.
  60. EDLIN does just this. What you see is what you get. Perhaps, if text,
  61. no numbers, is all you're typing (like a munuscript) a WP may help your
  62. production (full screen editor and text formatting). But, if you are
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. typing technical work (called statistical typing among the girls) there
  70. are many reasons to stay with EDLIN.
  71.  
  72. Ever tear your hair out when the W.P. carefully positions a  ( or ) at
  73. end of the line, front or back and worst of all, splits large numbers
  74. on two lines etc.etc. Of course, there are some people who dont use WP
  75. right justify also because a few long words in a line can produce a
  76. print out with more spaces than copy. Hyphenation, the printer's abom-
  77. ination is a slow proceedure in typesetting computers and even worse
  78. in a few MICRO W.P.s . Usually the text has to be printed out to find
  79. the bad line and paragraph breaks. Then the words affected are hyph-
  80. enated and repaired and the print out checking starts all over again.
  81.  
  82. Edlin doesn't format the printer except MODE can be used for column
  83. width of 132 characters. MXPLUS makes this easy with EDLIN using
  84. manual buttons for printing control.
  85.  
  86. But let's give EDLIN an opportunity to show its stuff. Its worth the
  87. time and trouble, we believe. For example, EDLIN will format its page
  88. and paragraph breaks easily and if you add or subtract lines later,
  89. its not difficult to adjust the pagination. On 8-1/2 x 11 there are
  90. 66 EDLIN lines and you know where each one of them is going. There are
  91. no one word paragraph surprises on the next page with EDLIN. What you
  92. see is what you print-out.
  93.  
  94. EDLIN FILES
  95. These are usually text files (ASCII) but need not have been prepared 
  96. on EDLIN generally. They can also be source files for programming in
  97. BASIC, FORTRAN, PASCAL, or COBOL. EDLIN will read some BASIC program
  98. files depending on the control characters embedded in them. So if you
  99. try to read a file which EDLIN bob-tails or shortens use  Q )uit to
  100. exit without saving. There is a caution about this later on.
  101.  
  102. The DOS manual says that EDLIN has a line length of 253 characters. It
  103. does but the IBM printer will print it all on one line, to save paper.
  104. So if you want to be able to read your EDLIN files dont go over length.
  105. The screen prints them properly but the printer needs a line feed and
  106. they are much easier to edit if every line has a number in EDLIN.
  107.  
  108. NEW EDLIN PROCEDURES -- REPEAT -- SPLIT -- MOVE -- SWAP LINES
  109.  
  110. DOS doesn't detail these procedures but if you investigate the
  111. line buffer you'll find they are available without much difficulty.
  112. DOS calls the line buffer an input buffer or "template" in the manual.
  113. But on the DOS card its called the "retained" line. They do not mention
  114. the command buffer, that is there to confuse you but is of little use.
  115.  
  116. REPEAT LINE
  117. This procedure is made simple by the fact that the line buffer holds
  118. each line as it is entered until it is replaced by another line or a
  119. line of spaces. In insert, type a line and enter it. Now on the
  120. next line number press function key F3 and the buffer will print
  121. its contents on that line and the next and the next as long as you
  122. keep entering F3, the same line each time. If you change it, enter it,
  123. the buffer will hold the changed line as entered.
  124.  
  125. All the function keys for editing work here. F1, F2, F3, and F4 do
  126. what you would expect. Remember, after using F4 to skip over, you must
  127. use F1, or F2, or F3 to put the letters on the line. DO NOT TOUCH F6
  128. It can bobtail your file when you try to read it again. It's a code
  129. for EOF (end of file).
  130.  
  131.  
  132.  
  133.  
  134.  
  135. Now how do we make this REPEAT line  go where we want it ? First try 
  136. this. Do a line edit command by typing in the line number that you want
  137. to MOVE. Type it at the command prompt (the leftmost asterisk *_ ).
  138. The entry should look like this    *22  enter  if it is line 22 you
  139. desire. Now F3 enter to put it in the "template buffer" (line buffer).
  140.  
  141. You have merely confirmed the line without editing and loaded the 
  142. buffer with the line. Now at command prompt  type in a line number 
  143. with  i  after it for insert  23i  and enter. EDLIN will reproduce that
  144. line number in the insert form 23:*   and if you press F3 enter, CTRL-
  145. BK the line in the buffer will be inserted in the line shown. Now you 
  146. have the same line in two places. Do an L enter and determine which
  147. one to delete. Be careful of  D or d  they can be dangerous. Verify
  148. every delete command very carefully. Do a list before and  after every
  149. delete command to see the changed line numbers before you proceed.
  150.  
  151. SPLIT LINE
  152. To split a line repeat it right above itself and then edit the front
  153. half and insert a line for more words and then insert a blank line for
  154. a paragraph. Then reword the second half line to fill the line or if
  155. you're not that fussy, use it in a bobtailed fashion.
  156.  
  157. The procedure once more. After any (insert text enter) or (edit line
  158. enter, F3 enter sequence) the buffer holds the last text line entered.
  159. If you enter a line of spaces (no text) the buffer will be empty.
  160. Select line to insert above (17) and enter 17i then F3 enter and the
  161. line will now be on line 17 also and wherever it came from. Each time
  162. you press  F3 enter   in insert mode you will repeat the line. Press
  163. Ctrl-Bk to end insert mode and do an  L (list) to see the results.
  164.  
  165. You have now REPEATed and MOVEd a line. Practise it. Remember F3 will
  166. only print out in the insert mode, when you have picked a line to put
  167. (insert) it before that line number.
  168.  
  169. Here is the sequence of commands to REPEAT line 22 before line 7 for
  170. example. Type at the command prompt   *22 enter F3 enter  at the next
  171. command prompt   *7i  enter F3 enter.   Then to kill the insert mode
  172. CTRL-BK . You now have line 22 REPEATed at line 7 . Do an L (list)
  173. to see the effects and the changed line numbers.
  174.  
  175. SWAP LINE
  176. To swap one line with another: do a REPEAT of lowest line in its new
  177. linenumber. Do an L (list to determine the new numbers). Then REPEAT
  178. the other line in its new position. Do an L (list) and note the lines
  179. to delete.  Do the bottom one first, then the upper delete so as not to
  180. change the line numbers or do a L after every delete to see what line
  181. needs deleting. Doing an L every time is safest and it only takes a 
  182. second to be safe.
  183.  
  184. EDLIN OPERATING SUGGESTIONS
  185. 1.Do not overrun line into the left margin of the screen. If line pops
  186. up, stop typing and slowly backspace  each character on the second
  187. line and count characters to be backspaced on the original line. Back-
  188. space these characters slowly, even though you don't see anything being
  189. deleted. Then enter the corrected line.(Press CTRL-BRK and enter the
  190. corrected line number, to see it). Then, put the dropped letters on
  191. the next line you type, and keep right on going. It works fine, watch.
  192.  
  193. 2. Keep EDLIN lines under 60 - 65 characters when typing them in. Leave
  194. room for editing. Mark screen with felt tip pen at say 64 characters
  195. and last character before overrun. Use vertical lines. They wipe off.
  196.  
  197.  
  198.  
  199.  
  200.  
  201. DOS says EDLIN lines can be 253 characters in length. Don't go past
  202. the pop up point. Printer needs line feeds or overrun lines are printed
  203. all on one line. For best results each line should have its own number.
  204. DOS lines are normally up to 128 chars long MAX. Use CTRL-ENTER for LF
  205.  
  206. 4. Always pause in command prompt (col 1 asterisk) to avoid incorrect
  207. entries on the line prompt  nnn:*  If interrupted use E )xitsave.
  208.  
  209. 5. See special regimen for D )elete on "SCORE CARD" to avoid wipe-outs.
  210.  
  211. 6. Use three blank lines at top and bottom of pages. There are 66 lines
  212. per 8.5 x 11 inch page. Format pages by leaving lines 63 to 69 blank,
  213. on the first perforation, 130 to 135 on the second perforation etc.
  214. Enter 60L then 126L then 190L to see the blanks spaces for perf skip.
  215.  
  216. 7. Use period  .  enter for current line. See current line review.
  217. Only use  . (period) enter for line editing. Do not use for delete.
  218.  
  219. 8. Insert  i locates BEFORE the line number used. *10i means before 10
  220. New line becomes number 10.
  221.  
  222. 9. Best rule -- at command prompt use form *17,33L  which means L )ist
  223. lines 17 to 33 inclusive. Do not use space instead of comma.
  224. Its better NOT to use  *,L which means current line (,comma) L )ist.
  225. Commands beginning with a comma can cause wipe-outs in D )elete.
  226. It is preferred not to use  ,  or   #  or  .  commands until you have
  227. mastered the straight single line commands. Never use them in D )elete
  228. Remember, the line number always comes before the l.c. letter.
  229.  
  230. 10. It's easy to confuse command prompt ( * at col 1) with current
  231. line insert prompt  174:*______  (asterisk is at col 8)
  232.  
  233. 11. There will be an asterisk on each new (inserted) line because the
  234. screen buffer holds the line as entered. A List shows the current line
  235. asterisk, or none if it was used with a CTRL-BK.
  236.  
  237. 12. Unless you are purposely deleting a line with ESC its a good habit
  238. to leave an edited line that you want continued with an enter.
  239.  
  240. 13. While typing in a line, if an error is less than half a line back,
  241. backspace and correct it immediately. If further back, finish the line
  242. and enter it. Do a CTRL-BK and enter the error line number. Correct
  243. the line and proceed to insert mode again. Do not use the next level
  244. of proof reading for picking up typing errors, but rather use it for
  245. context and readability. (there may still be some typing errrrors.)
  246.  
  247. 14. Do not use spaces as command separators. Do not use commas to
  248. begin commands. Simplify your alternatives and use the most clear
  249. methods, that do the job.
  250.  
  251. 15. Do a CHKDSK before invoking EDLIN, also do a A>dir first. Examine
  252. A>dir after both E )xitsave and Q )uitNOsave. Look for bob-tailing
  253. or strange entries that don't make sense.
  254.  
  255. 16. If you use F4 to skip over characters to a specified character
  256. there will be no characters shown on the line until you use F1, F2 or
  257. F3 to place them there. If you dont like the F4 choice enter ESC to
  258. get back to original line in template then enter  . period to see 
  259. current line ( the one you are repairing. )
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267. 17. WRITE and APPEND only apply to limited memories and super sized 
  268. files, that are not recommended by your favorite egg-basket dropper.
  269. Keep your files short for safety say 10K to 15K seems reasonable with
  270. EDLIN, but the use you put them to is more indicative. More searching
  271. can use longer files. More activities inputting and revising, there 
  272. is more chance for a wipe-out.
  273.  
  274. DOS -- EDLIN "SCORE CARD"  -- Staple it to your DOS card.
  275. ********************************************************************
  276. DOS card entries will not be duplicated unless comment is added.
  277. line means line number   *_ is command prompt   nn:*_ is line prompt
  278. DOS-EDLIN commands may be U.C.(caps) or L.C. Always end with <enter>
  279.  
  280. PLEASE  DO  A>CHKDSK  AND  A>DIR  BEFORE/AFTER  EDLIN  ALWAYS!
  281. ********************************************************************
  282.  
  283. EDLIN name   Edit or create file -- use short names for clarity.
  284.  
  285. *line        Linenumb to edit, REPEAT, SWAP, SPLIT,  or MOVE.
  286.              See pages II & III in DOS HORNBOOK
  287.  
  288. *<enter>     Prints next line after current line for editing
  289.  
  290. *i (or) I    Starts Insert mode above current line, or 1st, last line
  291.  
  292. *lineI       Insert above line    USE CTRL-BREAK TO CANCEL INSERT MODE
  293.  
  294. *lineL       List 22 lines from line number shown.
  295.  
  296. *line,lineL  List lines specified
  297.  
  298. *L           List 11 lines before current line and 11 lines after.
  299.  
  300. *.(period)   Prints current line (w/asterisk) at line prompt nn:*___
  301.              Current line is last line edited, next line after Delete
  302.                  next line after inserted lines.
  303.  
  304.  ALWAYS      DO AN  L  (list)  BEFORE/AFTER PLANNING OR USING DELETE.
  305.  
  306. *lineD       Delete line specified only
  307.  
  308. *line,lineD  Delete range of lines specified 
  309.  
  310. *D<enter>    Deletes current line  DO NOT USE THIS COMMAND FOR SAFETY
  311.  
  312. *E<enter>    Exitsave -- always use this to save files.
  313.  
  314. *Q<enter>    QuitNOsave - leaves no file (use if EDLIN can't read file)
  315.  
  316. **********************************************************************
  317. (C) PEOPLE SYSTEMS  1983  78 Maplevale Drive
  318. Woodbridge, CT 06525   203-393-3913
  319. **********************************************************************
  320.