home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT030.ZIP / ANARKEY3.ZIP / FASTART.DOC < prev    next >
Text File  |  1989-10-01  |  16KB  |  356 lines

  1.  
  2.  
  3.                                   ANARKEY
  4.                             Quick-Start Tutorial
  5.                             --------------------
  6.  
  7.    ANARKEY offers many powerful features that you will find extremely
  8. helpful when entering DOS command lines.  However, it is not necessary to
  9. understand all of ANARKEY's powers before you begin to use it.  This
  10. introductory tutorial will get you started using the basic ANARKEY features
  11. immediately.  As you become familiar with them, additional information can
  12. be found in the "ANARKEY User Manual."
  13.  
  14.    First, simply execute the ANARKEY.COM program file from the DOS command
  15. prompt as you would any other program.  A sign-on message will appear and
  16. you will be sitting at a new command prompt.  Everything will appear normal
  17. except now the ANARKEY features are available for your use.
  18.  
  19.    One of ANARKEY's most useful features is its editing facility.  To
  20. demonstrate this, enter the following line at the command prompt:
  21.  
  22.                       >echo This is an ANARCHY test_
  23.  
  24.    The underscore in the above line shows the current cursor position at the
  25. end of the line.  In the sample, the word ANARKEY is misspelled (sort of).
  26. We wish to change ANARCHY to ANARKEY.
  27.  
  28.    To accomplish this, the <Left-Arrow> key can be pressed to move the
  29. cursor left until it is under the first character we wish to modify.  Go
  30. ahead and do this now.  Notice that moving the cursor does not delete
  31. characters as it backtracks through the line.
  32.  
  33.    The line, with its cursor position now under the 'C', should look like
  34. this:
  35.  
  36.                       >echo This is an ANARCHY test
  37.                                            -
  38.  
  39.    In addition to the <Left-Arrow> key moving the cursor left one character,
  40. the <Right-Arrow> key will move the cursor right one character.  Also, the
  41. <Home> key will move the cursor to the beginning of the line and pressing
  42. the <End> key will send the cursor to the end of the line.  Experiment
  43. moving the cursor with the <Left> and <Right> arrow keys and the <Home> and
  44. <End> keys.  Positioning the cursor in this way has no effect on the
  45. contents of the command line, so you can play with them all you like.
  46.  
  47.    After you have a feel for positioning the cursor, reset the cursor so it
  48. is under the 'C' character in ANARCHY.  We'll now complete the editing
  49. operation we originally started out doing - changing ANARCHY to ANARKEY.
  50.  
  51.    When characters are typed on a line, they are either "inserted" into
  52. the line or they "overwrite" the current character.  When a character is
  53. inserted, any characters to the right of the cursor are shifted over to make
  54. room for the new character.  When a character is overwritten, the new
  55. character replaces the character at the cursor position; no shift occurs.
  56.  
  57.    Whether a character will be inserted or overwritten is determined by the
  58. "mode" ANARKEY is in, either insert mode or overwrite mode.  When first
  59. installed, ANARKEY is in insert mode.  Thus any characters typed will be
  60. inserted into the line and the remainder of the line will be shifted to make
  61. room for them.
  62.  
  63.    Verify this on the sample line by entering the single character 'K'.  The
  64. command line and cursor position should now look like this:
  65.  
  66.                       >echo This is an ANARKCHY test
  67.                                             -
  68.  
  69.    ANARKEY can be placed in overwrite mode by pressing the <Ins> key.  Do so
  70. now.
  71.  
  72.    When in overwrite mode, the cursor shape changes from an underscore to a
  73. block shape.  That is how you can tell which mode you are in; insert mode
  74. has an underscore cursor and overwrite mode has a block cursor.
  75.  
  76.    You can return to insert mode by pressing the <Ins> key again.  The <Ins>
  77. key toggles the editing mode between insert and overwrite.  The cursor shape
  78. will always remind you which mode you're in.
  79.  
  80.    Set the editing mode back to overwrite (block cursor) and type an 'E'
  81. character.  The 'E' will overwrite the 'C' under the cursor and advance the
  82. cursor to the next character.  The command line should now look like this:
  83.  
  84.                       >echo This is an ANARKEHY test
  85.                                              -
  86.  
  87.    The cursor shown above is an underscore, but your screen cursor will be a
  88. block.  Press the <Ins> key to toggle back into insert mode so that the
  89. screen display will match our example.
  90.  
  91.    In addition to being inserted, characters may also be deleted by pressing
  92. the <Del> key.  When the <Del> key is pressed, the character under the
  93. cursor is removed from the line and any characters to the right are shifted
  94. over to fill the vacated space.
  95.  
  96.    Press the <Del> key with the cursor under the character 'H'.  The 'H'
  97. will be deleted and the remaining characters shifted over one space.  The
  98. line will look like this:
  99.  
  100.                       >echo This is an ANARKEY test
  101.                                              -
  102.  
  103.    The <Backspace> key can also be used to delete characters from the line.
  104. <Backspace> differs from the <Del> key in that it will remove the character
  105. TO THE LEFT of the cursor position and move the cursor left one space.
  106.  
  107.    Experiment with the editing keys you've learned so far.  They are:
  108.  
  109.                 <Left-Arrow>    Move cursor left one character
  110.                 <Right-Arrow>   Move cursor right one character
  111.                 <Home>          Move cursor to beginning of line
  112.                 <End>           Move cursor to end of line
  113.                 <Ins>           Toggle between insert and overwrite modes
  114.                 <Del>           Delete character under cursor
  115.                 <Backspace>     Delete character to left of cursor
  116.  
  117.    When you are comfortable with the editing keys, enter the original
  118. example line above and press <Enter>.  The cursor may be positioned anywhere
  119. on the line when <Enter> is pressed; the entire line will be accepted.  The
  120. ECHO command we just entered will be executed and the cursor will be sitting
  121. at a new command prompt.  You should see the following on your screen:
  122.  
  123.                       >echo This is an ANARKEY test
  124.                       This is an ANARKEY test
  125.  
  126.                       >_
  127.  
  128.    ANARKEY "saves" all the commands you enter.  A list of the saved commands
  129. can be displayed onscreen by pressing the <F4> key.  Do so now to show that
  130. ANARKEY has saved the command we just entered.  Your screen should look like
  131. this:
  132.  
  133.                       >
  134.                       echo This is an ANARKEY test
  135.  
  136.                       >_
  137.  
  138.    Enter and execute the following commands:
  139.  
  140.                       >dir *.*
  141.                       >type read.me
  142.                       >dir \*.bat
  143.  
  144.    Now press the <F4> key to verify that ANARKEY has saved each of the
  145. commands.  Your screen should look like this:
  146.  
  147.                       >
  148.                       echo This is an ANARKEY test
  149.                       dir *.*
  150.                       type read.me
  151.                       dir \*.bat
  152.  
  153.                       >_
  154.  
  155.    In addition to saving your commands, ANARKEY allows you to retrieve them
  156. for editing and re-execution.  Often retrieving a command will be much
  157. easier than retyping it.
  158.  
  159.    Commands can be retrieved by pressing the <Up-Arrow> and <Down-Arrow>
  160. keys.  These keys retrieve commands from the saved list sequentially.
  161.  
  162.    Press the <Up> and <Down> arrow keys a few times and you will see how
  163. this is done.
  164.  
  165.    An easier way to retrieve commands is available by using ANARKEY's
  166. command completion feature.  Start with a blank command line and enter the
  167. first character of the command you wish to retrieve.  For example, say you
  168. wish to retrieve the ECHO command we started this tutorial with.  Simply
  169. enter the character 'e' on the command line (case does not matter).  The
  170. command line should look like this:
  171.  
  172.                       >e_
  173.  
  174.    To "complete" the command, hit the <Tab> key.  ANARKEY will start from
  175. the bottom of the saved-command list and search for the first command that
  176. begins with the character 'e'.  When it finds one, it retrieves the command
  177. and enters it on the command line, thereby completing the command for you.
  178. Given our example, the command line would now contain:
  179.  
  180.                       >echo This is an ANARKEY test
  181.                         -
  182.  
  183.    The completion operation required only two keystrokes ('e' and <Tab>)
  184. while a comparable <Up-Arrow> retrieval would have required four keypresses.
  185. If the desired line was further up in the saved-command list, the completion
  186. operation would have saved even more keystrokes.
  187.  
  188.    If the retrieved command was not the command you wanted, pressing <Tab>
  189. again will instruct ANARKEY to find and retrieve another command that begins
  190. with an 'e'.  If another command exists in the list, it will be retrieved
  191. and entered on the command line.  <Tab> can be pressed any number of times
  192. to cycle through all the commands that match.
  193.  
  194.    You can also specify more than one character of the desired command.  Any
  195. number of characters can be specified, although one or two will usually be
  196. enough.
  197.  
  198.    Once a command has been retrieved, it can be modified using the editing
  199. facilities described earlier.  When the command is ready for execution,
  200. simply press <Enter>.
  201.  
  202.    Commands are not the only thing ANARKEY will complete.  Directory and
  203. file names can also be completed.  This is done by pressing the <Tab> key,
  204. same as when completing commands.  ANARKEY is smart enough to know what type
  205. of completion you want and will go ahead and do it automatically.
  206.  
  207.    As an example, say you wish to move to a directory called \GLOBAL.  Enter
  208. the following command line:
  209.  
  210.                       >cd\g_
  211.  
  212.    Only the first character of the directory is needed (you can enter more
  213. if you want, but there is no need).  Then press the <Tab> key.  ANARKEY will
  214. determine that you want to complete the name of a directory and go ahead and
  215. do it, entering the name on the command line.  The line will now look like
  216. this:
  217.  
  218.                       >cd\global
  219.                            -
  220.  
  221.    If there were several directories that began with 'G', ANARKEY may choose
  222. one of them for its completion.  If ANARKEY completes the name with an
  223. undesired name, simply continue pressing <Tab>.  ANARKEY will cycle through
  224. all the directories beginning with the letter 'G'.  Eventually, it will
  225. complete the one you're looking for.
  226.  
  227.    Notice that the cursor position does not change after a name completion.
  228.  
  229.    You can now press <Enter> to execute the command.
  230.  
  231.    To continue this example, say you really want to go to the directory
  232. called \GLOBAL\PROGS.  Assume we have just completed the \GLOBAL portion and
  233. the cursor is sitting under the first 'l' in 'global' as shown above.  Now
  234. press the '\' key.  The command will become:
  235.  
  236.                       >cd\global\_
  237.  
  238.    Notice that the cursor position automatically moved to the end of the
  239. directory name before entering the backslash(\) character.  This automatic
  240. cursor positioning will occur whenever you are completing directory or file
  241. names and you press a key that cannot be a part of the name, such as the
  242. backslash, space or slash(/) characters.  The character will be appended to
  243. the end of the completed name automatically.
  244.  
  245.    We can now complete the PROGS portion of the command line by entering a
  246. 'p' and pressing <Tab>.  The final command line is:
  247.  
  248.                       >cd\global\progs
  249.                                   -
  250.  
  251.    The command can be executed by pressing <Enter>.
  252.  
  253.    File names can be completed in the same manner.  For example, say you
  254. wish to copy a file called LETTER.TXT to drive A:.  Enter the following line
  255. and press <Tab>:
  256.  
  257.                       >copy l_
  258.  
  259.    ANARKEY knows you want to complete a file name and does so automatically
  260. so that the command line will now look like this:
  261.  
  262.                       >copy letter.txt
  263.                              -
  264.  
  265.    To specify drive A:, simply press <Space>.  This will cause the cursor
  266. position to automatically move to the end of the completed file name and
  267. enter a space on the line.  Then type in the 'a:' portion.  Pressing <Enter>
  268. will execute the command.  The final line will look like:
  269.  
  270.                       >copy letter.txt a:_
  271.  
  272.    Not only will the <Tab> key complete directory and file names, but it
  273. will complete program names, too.  To do so, the program file must be in the
  274. current directory.  For example, say you wish to execute a program called
  275. EDIT which is stored in the current directory.  At a fresh command prompt,
  276. enter an 'e' and press <Tab>.  ANARKEY is smart enough to know that a
  277. program name completion is called for and will perform the appropriate
  278. completion.
  279.  
  280.    There are occasions when it is necessary to modify an environment
  281. variable's value.  This often occurs when a slightly different PATH value is
  282. required.  The painstaking method of re-entering the entire value is not
  283. necessary with ANARKEY.  ANARKEY will enter any environment variable's value
  284. on the command line for you.  You can then edit it to the desired value
  285. before executing/saving it.
  286.  
  287.    As an example, say you want to modify the value of the PATH environment
  288. variable.  Simply enter the following portion of the line and press (what
  289. else?) the <Tab> key:
  290.  
  291.                       >set p_
  292.  
  293.    ANARKEY will determine that you wish to complete an environment variable
  294. automatically.  It will enter the name of the variable and its current value
  295. on the command line.  The cursor will be positioned under the first
  296. character of the variable's value.  Thus, the command line may look like
  297. this:
  298.  
  299.                       >set path=c:\;c:\dos;c:\global;c:\bin\programs
  300.                                 -
  301.  
  302.    If more than one environment variable began with a 'p', each could be
  303. retrieved and entered on the command line by repeated pressings of <Tab>.
  304.  
  305.    The PATH and PROMPT environment variables are special in that they do not
  306. require that they be defined with a SET command.  If SET is not specified on
  307. the command line then the entire environment variable's name must be spelled
  308. out before pressing the <Tab> key.  Thus, the following would have to be
  309. entered:
  310.  
  311.                       >path_
  312.  
  313.    The <Tab> key can now be pressed to retrieve the value of the PATH
  314. variable.
  315.  
  316.    You have probably noticed that the <Tab> key does a lot of things.  It
  317. will complete commands, names of directories, files and programs and even
  318. environment variables.  Since one key does all this, ANARKEY is extremely
  319. easy to learn and use.
  320.  
  321.    ANARKEY will correctly determine the appropriate completion type 75% to
  322. 90% of the time.  Occasionally, ANARKEY will make a mistake and think that
  323. you want to complete something, say a command, when what you really want to
  324. complete is a program name.  This is not a problem.  Simply continue to
  325. press the <Tab> key.  Once ANARKEY has finished completing all matching
  326. command lines, it will stop and think "Gee, I've cycled through all the
  327. command completions and he or she still wants more.  They must want to
  328. complete something other than a command."  It will then determine what the
  329. most-likely type of completion is and perform it.  In the few cases when a
  330. second choice such as this is needed, ANARKEY will make the correct
  331. decision.
  332.  
  333.    You are now able to use the basic features of ANARKEY.  With this
  334. knowledge, you can start using ANARKEY productively right now.
  335.  
  336.    However, this tutorial was meant to get you started quickly and only
  337. touches the surface of ANARKEY's full capabilities.  Much more is available.
  338. If you are interested in learning about the other powerful ANARKEY features,
  339. read the "ANARKEY User Manual."
  340.  
  341.  
  342.  
  343.                                 Steven Calwas
  344.                                Moderne Software
  345.                                 P.O. Box 3638
  346.                           Santa Clara, CA 95055-3638
  347.  
  348.                               _______
  349.                          ____|__     |               (tm)
  350.                       --|       |    |-------------------
  351.                         |   ____|__  |  Association of
  352.                         |  |       |_|  Shareware
  353.                         |__|   o   |    Professionals
  354.                       -----|   |   |---------------------
  355.                            |___|___|    MEMBER
  356.