home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 206 / 206.d81 / t.mredstar < prev    next >
Text File  |  2022-08-26  |  10KB  |  362 lines

  1. u
  2.          M R .   E D S T A R
  3.  
  4.            by Dave Moorman
  5.  
  6.  
  7.     Edstar has always been a sweet
  8. little text editor. No Microsoft WORD,
  9. but exactly what you need if you are
  10. writing for a C-64 screen. I use it
  11. constantly for LOADSTAR, so I also
  12. developed a list of things I wished
  13. Edstar could do:
  14.  
  15.  Load and Save MS-DOS TXT files;
  16.  Line Center, Left, Right;
  17.  A u t o   D o u b l e - s p a c e;
  18.  Auto Glue entire paragraph;
  19.  Print 65 column hard copies.
  20.  
  21.     Secondly, I wanted a mouse-driven
  22. program with all the comands available
  23. as general hotkeys, menu hotkeys, menu
  24. cursor, and (of course) menu mouse.
  25. That way, you can learn the easiest
  26. keystroke, yet have every function
  27. available on menu as well.
  28.  
  29.     Lastly, I wanted the keystroke
  30. commands to duplicate those of earlier
  31. Edstars. I have become quite used to
  32. <CTRL-I> and <CTRL-F><CTRL-G>. But I
  33. figured we could have some easier ones
  34. as well (<CTRL-F><CTRL-G> can now be
  35. accomplished with <C=-G>.)
  36.  
  37.     I have followed the lead of the
  38. Make-Shift Dopular Operating Systems
  39. and put the semi-obligatory Menu Bar
  40. across the top of the screen. Click it
  41. with the Mouse, or press the
  42. highlighted key combination to pull
  43. down the menu:
  44.  
  45.   Green Highlight  -- <C=-key>
  46.   Yellow Highlignt -- <CTRL-key>
  47.   Reversed Char    -- <key>
  48.  
  49.  On the menu, the highlighted letter
  50. within the command word is the Menu
  51. Hotkey, good only when the menu is
  52. open. The letter to the right of the
  53. command is the General Hotkey, which
  54. lets you avoid opening Menus all the
  55. time. As you learn the General
  56. Hotkeys, you won't need the menus as
  57. much.
  58.  
  59.     The <INST/DEL> key works as you
  60. might expect -- unshifted to Delete
  61. and shifted to Insert spaces.
  62. Characters pushed off the right edge
  63. of the screen are lost.
  64.  
  65.  
  66.  [EDSTAR PROTOCOL]
  67.  [---------------]
  68.  
  69.     Mr. Edstar has a freely roaming
  70. cursor, but is still a line-based text
  71. editor. That means the text line under
  72. the cursor is all Mr. Ed is working
  73. on. When saved as a T. file, each line
  74. has its own carriage return.
  75.  
  76.     And as per Imperial Command of Lee
  77. Novak, Mr. Edstar saves T. files with
  78. a Zero Byte at the end. This makes the
  79. files perfect for Racking with Mr.
  80. Mouse!
  81.  
  82.     For printing hard copies in 65
  83. columns and saving TXT files, Mr.
  84. Edstar removes the carriage returns
  85. except at the end of a paragraph. The
  86. end of a paragraph is defined as when
  87. the [next] line is blank or has a
  88. space in the first column.
  89.  
  90.     When preparing a TXT document for
  91. Mr. Edstar, be sure that no line
  92. without spaces is longer than 38
  93. characters. If Mr. Edstar freezes
  94. while loading a TXT file, this is most
  95. likely the problem.
  96.  
  97.     Also, the first two bytes of the
  98. TXT file will be lost during the load.
  99. If the TXT document has a blank line
  100. at the top, the two- byte carriage
  101. return will provide these bytes. When
  102. saved, two spurious bytes will be
  103. added to the beginning of the TXT
  104. document.
  105.  
  106.  
  107.  [THE MENUS AND COMMANDS]
  108.  [----------------------]
  109.  
  110.  [File] <C=-F>
  111.  
  112.     [New] <C=-F><N> or <C=-N>
  113.         Clears the text.
  114.  
  115.     [Load] <C=-F><L> or <CTRL-L>
  116.         Loads a file. If the filename
  117.         begins with "T.", then it is
  118.         presumed to be a C= 38 column
  119.         PETASCII file. If the filename
  120.         has a ".TXT" extension, it is
  121.         presumed to be a MS-DOS ASCII
  122.         file. If neither are present,
  123.         you will be asked to choose:
  124.  
  125.            1. C= T.file
  126.            2. PC file.TXT
  127.            3. Cancel
  128.  
  129.     [Save] <C=-F><S> or <CTRL-S>
  130.         Saves file with same presump-
  131.         tions as LOAD. If the text is
  132.         new, type in the filename.
  133.  
  134.     [Save As] <C=-F><A> or <CTRL-A>
  135.         Lets you type in a new name
  136.         for your file.
  137.  
  138.     [Disk/Dir] <C=-F><D> or <C=-D>
  139.         Opens a menu to allow Disk
  140.         Access.
  141.  
  142.         [1. On Device #] Shows current
  143.             Drive number. Select to
  144.             choose a different drive.
  145.  
  146.         [2. Send Disk Command] Select
  147.             to do just that.
  148.  
  149.         [3. Directory] Lets you look.
  150.  
  151.         [4. Memory Check] Select to
  152.             see how much space you
  153.             have left.
  154.  
  155.         [5. Cancel Disk/Dir] just lets
  156.             you out of the menu -- as
  157.             does clicking anywhere
  158.             else.
  159.  
  160.     [Print] <C=-F><P> or <CTRL-P>
  161.         Choose between 1 - 65 col.
  162.         column or 2 - 38 col. columns.
  163.  
  164.     [Exit] <C=-F><X> or <CTRL-X>
  165.         Quit Mr. Edstar and return to
  166.         LOADSTAR (if disk is in
  167.         drive).
  168.  
  169.  [Edit] <CTRL-E>
  170.  
  171.     [Insert] <CTRL-E><I> or <CTRL-I>
  172.         Insert a line at cursor,
  173.         pushing other lines down.
  174.  
  175.     [Delete] <CTRL-E><D> or <CTRL-D>
  176.         Deletes cursor line, pulling
  177.         other lines up.
  178.  
  179.     [Indent] <CTRL-E><N> or <STOP>
  180.         Moves Cursor over 4 spaces.
  181.         No word wrap.
  182.  
  183.     [Indent Number] <CTRL-E><N><#> or
  184.                     <C=-number key>
  185.         A character [must] be in the
  186.         first column. Pushes line up
  187.         to 8 spaces in, and performs
  188.         word wrap.
  189.  
  190.  [Function] <CTRL-F>
  191.  
  192.     [Split] <CTRL-F><CTRL-S> or <C=-S>
  193.         Splits line at space under or
  194.         right of cursor. Cursor to
  195.         next line.
  196.  
  197.     [Kut] <CTRL-F><CTRL-K> or <C=-K>
  198.         Character under cursor and all
  199.         that follows goes to next
  200.         line. Cursor stays on current
  201.         line.
  202.  
  203.     [Break] <CTRL-F><CTRL-B> or
  204.             <Shift-RETURN>
  205.         Splits line at space under or
  206.         left of cursor. Cursor stays
  207.         on current line.
  208.  
  209.     [Glue] <CTRL-F><CTRL-G> or <C=-G>
  210.         Connects next line to current
  211.         line with single word wrap if
  212.         needed. Glue always puts a
  213.         space between the end of the
  214.         current line and the beginning
  215.         of the glued line.
  216.  
  217.     [Unite] <CTRL-F><CTRL-U> or <C=-U>
  218.         Glues from current line to end
  219.         of paragraph.
  220.  
  221.  [Format] <CTRL-O>
  222.  
  223.     [Align Center] <CTRL-O><C> or
  224.                    <C=-E>
  225.         Centers current line.
  226.  
  227.     [Align Left] <CTRL-O><L> or <C=-L>
  228.         Moves current line to left
  229.         edge.
  230.  
  231.     [Align Right] <CTRL-O><R> or
  232.                   <C=-R>
  233.         Moves current line to right
  234.         edge.
  235.  
  236.     [Up/low Case] <CTRL-O><U> or
  237.                   <CTRL-U>
  238.         Toggles current line between
  239.         all Lower Case and all Upper
  240.         Case. That is, to get all
  241.         Upper Case, press <C=-U>
  242.         <C=-U>.
  243.  
  244.     [Wide] <CTRL-O><W> or <C=-W>
  245.         Current line must begin at
  246.         left edge and be no longer
  247.         than 19 characters. Letters
  248.         are [S P A C E D] like this.
  249.  
  250.     [Left Cursor] <CTRL-O><L> or <F1>
  251.  
  252.     [Right Cursor] <CTRL-O><R> or <F7>
  253.  
  254.     [Top Cursor] <CTRL-O><T> or <F2>
  255.  
  256.     [Bottom Curs] <CTRL-O><B> or <F8>
  257.  
  258.  [Info] <C=-I>
  259.     Presents Memory available (Mr.
  260.     Edstar begins with 19199 bytes for
  261.     text.), the number of disk blocks
  262.     used, and the line number the
  263.     cursor is on.
  264.  
  265.  
  266.  [Techno-Notes]
  267.  [------------]
  268.  
  269.     Inside, where you would never know
  270. it, Mr. Edstar works exclusively with
  271. Screen Code for the Characters. This
  272. enables much faster response times and
  273. eliminates the whole Double-Quote Mode
  274. problem.
  275.  
  276.     The other advantage of using
  277. Screen Code is that a byte with bit 7
  278. set could then be the End of Line
  279. marker. The other 7 bits of the marker
  280. hold the length of the previous line.
  281.  
  282.     Memory is arranged with two Stacks
  283. -- one for everything above the cursor
  284. line and one for everything below the
  285. cursor line. The line under the cursor
  286. is held in a Buffer, where all typing
  287. and manipulation occurs.
  288.  
  289.     The Front Stack Pointer points to
  290. the last End of Line marker. When a
  291. line is added to the Front Stack, the
  292. Pointer is incremented and the data is
  293. transfered from front to back. When a
  294. line in the Front Stack is moved to
  295. the Buffer, the line length (in the
  296. End of Line marker) is subtracted from
  297. the Front Pointer. Then the data is
  298. moved to the Buffer from front to
  299. back.
  300.  
  301.     All functions (except those in the
  302. File Menu) are controled by the
  303. General Hotkeys in ML. When the Mouse
  304. is clicked (or one of the Menu Keys is
  305. pressed), control returns to Basic.
  306. Mr. Mouse and Basic then can handle
  307. all the menus and dialog boxes.
  308. Loading, Saving, and Printing are all
  309. handled by Basic code, with a little
  310. help from Mr. Mouse and some custom
  311. ML. For the rest of t