home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / toddy600.zip / TODDY.DOC < prev   
Text File  |  1993-10-27  |  85KB  |  1,746 lines

  1.  
  2.  
  3.  
  4.                                       Toddy
  5.                             A DOS Command Line Editor
  6.  
  7.                                        by
  8.  
  9.                                    Eric Tauck
  10.                                1304 Deerpass Road
  11.                              Marengo, IL 60152-9644
  12.                                      U.S.A.
  13.  
  14.                              Compuserve: 72457,1557
  15.                        Internet: 72457.1557@compuserve.com
  16.  
  17.         Toddy is a terminate and stay resident (TSR) utility that en-
  18.         hances the entry and editing of DOS commands, saves commands for
  19.         later retrieval, and provides resident macros that work like
  20.         simple batch files.  Only certain programs that use DOS for
  21.         input, like COMMAND.COM or DEBUG.COM, will be affected by Toddy.
  22.         Toddy will work on any PC compatible running DOS 2.0 or greater.
  23.         Toddy may be used and distributed freely.
  24.  
  25.                                   Installation
  26.                                   ------------
  27.  
  28.         Toddy is installed by running it from the command line.  The
  29.         features of Toddy are available upon installation.  Toddy is
  30.         usually installed from the AUTOEXEC.BAT file when the computer is
  31.         booted up.  If you get the message "Multiplex number in use by
  32.         another program" when you try to install Toddy, see the /M switch
  33.         described in the Switch Descriptions section.
  34.  
  35.         Toddy needs about 25000 bytes of memory to install, but shrinks
  36.         to 6624 bytes when it becomes resident.  The resident memory
  37.         usage changes according to the settings of the /B, /HS, /KS, /MN,
  38.         /MS, /NS, /VL, and /VN switches.  If you get the message "Not
  39.         enough memory" when loading Toddy high, try loading Toddy before
  40.         other TSR's.
  41.  
  42.         The appearance of Toddy (the colors and cursor types) can be set
  43.         with the /AC, /AE, /AT, /TC, /TE, /TI, /TO, /TS, and /TX switch-
  44.         es.  By default, Toddy sets all the colors to white on black and
  45.         does not modify the cursor type.
  46.  
  47.         The key assignments of Toddy can be changed using key macros.
  48.         Throughout this document, commands are referred to by specific
  49.         keystrokes, however these are only the default key assignments
  50.         and may be changed.
  51.  
  52.         All changes you make to Toddy (colors, key assignments, macros,
  53.         etc. ) can be saved and restored using the /OW, /OR, and /W
  54.         switches.
  55.  
  56.         Once installed, Toddy may be disabled with the /D switch and
  57.         enabled with the /E switch.  These switches might be useful if an
  58.         application conflicts with Toddy.  Toddy may also be removed from
  59.  
  60.  
  61.  
  62.         memory with the uninstall switch (/U).
  63.  
  64.         The end of this document contains a list of version changes and
  65.         some additional notes on using and configuring Toddy.
  66.  
  67.                                      Editing
  68.                                      -------
  69.  
  70.         Toddy's enhanced editing commands are available immediately upon
  71.         installation.  When entering a DOS command, use the right and
  72.         left arrow keys to move the cursor non-destructively.  Past
  73.         commands can be retrieved by pressing the up and down arrow keys,
  74.         or by typing a few letters and searching for a matching command
  75.         with the Tab key.  You can quickly enter the name of an existing
  76.         file by typing part of the name and pressing F9 until the entire
  77.         name is displayed.  The standard DOS editing keys (F1 to F6) may
  78.         also be used.
  79.  
  80.         In the next table and throughout the rest of this document, a
  81.         "Ctrl-" to the immediate left of a keystroke or letter refers to
  82.         that keystroke being pressed while the CONTROL key is held down.
  83.         Similarly, an "Alt-" next to a keystroke refers to the keystroke
  84.         being pressed while the ALT key is held down.  A complete list of
  85.         editing commands follows:
  86.  
  87.           Left              move cursor left
  88.           Right             move cursor right
  89.           Home              move cursor to first column
  90.           End               move cursor to last column
  91.           Ctrl-Left         move cursor to previous word
  92.           Ctrl-Right        move cursor to next word
  93.  
  94.           Delete            delete character under the cursor
  95.           Backspace         delete character to the left of the cursor
  96.           Ctrl-Backspace    delete word to the left of the cursor
  97.           Ctrl-Home         delete all characters left of the cursor
  98.           Ctrl-End          delete all characters right of the cursor
  99.           Escape            delete all characters on the line
  100.  
  101.           Up                load older history line
  102.           PgUp              load oldest history line
  103.           Down              load newer history line
  104.           PgDn              load newest history line (last line saved)
  105.           Tab               search for next matching history line
  106.           Shift-Tab         search for previous matching history line
  107.           Alt-F7            delete all history lines
  108.  
  109.           F9                replace word with next matching file name
  110.           Shift-F9          replace word with previous matching file name
  111.           F10               append matching file name
  112.  
  113.           Enter             accept input
  114.           Ctrl-Enter        accept input without any processing
  115.  
  116.           Insert            toggle insert mode
  117.  
  118.  
  119.  
  120.  
  121.           Ctrl-L            delete word to the left of the cursor
  122.           Ctrl-R            delete word to the right of the cursor
  123.           Ctrl-D            delete current history line
  124.           Ctrl-K            copy current line to history then clear line
  125.           Ctrl-V            enter a control character
  126.  
  127.           F1                copy next character from the template
  128.           F2                copy template characters up to the next key
  129.           F3                copy remaining characters from the template
  130.           F4                skip template characters up to the next key
  131.           F5                copy current input to the template
  132.           F6                insert EOF character
  133.  
  134.         To enter control characters normally interpreted by DOS or Toddy,
  135.         press Ctrl-V and then the letter.  For instance, press Ctrl-VC to
  136.         enter Ctrl-C.  Toddy displays control characters using the ASCII
  137.         character, for instance a ^C (which is ASCII code 3) shows up as
  138.         a little heart.  Besides the control keys listed above (Ctrl-L,
  139.         Ctrl-R, Ctrl-D, Ctrl-K, and Ctrl-V), some other codes that can
  140.         only be entered using Ctrl-V include: Ctrl-C (break), Ctrl-M
  141.         (enter), Ctrl-P (toggle line printer echo) and Ctrl-S (pause
  142.         display).  Note that Toddy does not allow the NUL code (Ctrl-@)
  143.         to be entered.
  144.  
  145.                               File Name Completion
  146.                               --------------------
  147.  
  148.         The file name completion feature lets you quickly enter the name
  149.         of an existing file.  Just type the first few letters of the file
  150.         name and press F9.  The first file matching those letters will
  151.         replace the letters.  Pressing F9 again will replace the first
  152.         matching file with the next matching file.  If there are no more
  153.         matching files, pressing F9 does nothing.  Shift-F9 replaces the
  154.         last match with the previous match.  F10 works similarly to F9,
  155.         except matching files are appended to the last match (rather than
  156.         replacing it).
  157.  
  158.         The initial search pattern may include wildcard characters and
  159.         may or may not include a file name extension.  The /NT switch
  160.         determines the files types matched (i.e. normal, hidden, system,
  161.         and/or directories), and the /NU and /NL switches control whether
  162.         matching files are displayed in upper or lowercase letters.  If
  163.         you enable directory matching using the /NT switch, directories
  164.         will be displayed with a trailing backslash.  This backslash can
  165.         be enabled or disabled with the /NB and /NC switches.  By de-
  166.         fault, only normal files are matched and matching files are
  167.         displayed in uppercase.
  168.  
  169.                                  Command History
  170.                                  ---------------
  171.  
  172.         Every time you execute a DOS command, the command is copied to
  173.         the command history for later retrieval.  If there isn't enough
  174.         room because of previously saved commands, Toddy will delete the
  175.  
  176.  
  177.  
  178.         oldest command or commands to make room.  You can prevent a
  179.         command from being saved to the command history by pressing
  180.         Ctrl-Enter (instead of Enter) to run the command.  You can copy a
  181.         command to the command history without running it by pressing F5
  182.         or Ctrl-K.  The up arrow key will retrieve the last command.
  183.         Repeatedly pressing the up arrow key will retrieve progressively
  184.         older commands.  The down arrow key retrieves newer commands (the
  185.         opposite of the up arrow key).  Other keys for scrolling through
  186.         the command history are listed in the Editing section above.
  187.         Commands are not saved to the command history if they are identi-
  188.         cal to the last command.  Also, Toddy can be configured to pre-
  189.         vent other types of commands from being saved.  See the descrip-
  190.         tions of the /HM, /HU, and /HA switches in the Switch Descrip-
  191.         tions section.  Alternatively, previous commands can be automati-
  192.         cally removed from the command history using the /HP, /HI, /HD,
  193.         /HK switches.  The command history may be written to a file or
  194.         loaded from a file with the /HW and /HR switches.  The current
  195.         history can be locked, freed (unlocked), or cleared with the /HL,
  196.         /HF, and /HC switches.  When the history is locked, commands are
  197.         no longer copied to it.
  198.  
  199.         The command history can be searched by matching the beginning
  200.         characters.  For instance, if you recently entered a long command
  201.         like:
  202.  
  203.           tcc -v -ms zorro init.obj graflib.lib extra.lib
  204.  
  205.         you can search for this line by typing the first few characters,
  206.         "tcc" for instance, and then pressing the Tab key.  If there is
  207.         more than one saved command that begins with "tcc", repeatedly
  208.         pressing Tab will find each occurrence.  If there are no more
  209.         occurrences, the display will not change.  You can search in the
  210.         reverse direction with Shift-Tab.  Searching in reverse is par-
  211.         ticularly useful if you've accidentally searched past the command
  212.         you were looking for by pressing the Tab key too many times.
  213.  
  214.         When using the up or down arrow keys to scroll through the com-
  215.         mand history, Toddy will "wrap around" from the oldest entry to
  216.         the newest, or from the newest to the oldest.  Toddy loads a
  217.         blank line just before wrapping.
  218.  
  219.         If you've just run a command from the history without modifying
  220.         it and you press the down arrow key before anything else, Toddy
  221.         will load the command from the history that follows the command
  222.         you just ran.  This is referred to in this document as "history
  223.         trace."  History tracing is useful for reentering multiple com-
  224.         mands.  For instance, if you've recently entered the commands:
  225.  
  226.           COPY *.* A:
  227.           DEL *.*
  228.  
  229.         and you want to run these two commands again, first find the COPY
  230.         command by typing "co" and pressing Tab.  When the COPY command
  231.         is displayed, run it.  Now you can recall the DEL command just by
  232.         pressing the Down arrow key.
  233.  
  234.  
  235.  
  236.  
  237.                              Command History Window
  238.                              ----------------------
  239.  
  240.         If you run Toddy without any command line arguments and Toddy has
  241.         already been installed,  Toddy will display a window in the
  242.         center of the screen showing all the commands currently saved in
  243.         the command history.  The Up and Down arrow keys scroll through
  244.         the list one line at a time, the Page-Up and Page-Down keys
  245.         scroll through the list a page at a time, and the Home and End
  246.         keys go to the first (oldest) and last (newest) commands.
  247.  
  248.         When you've found a command you want run or edit, position the
  249.         command to the highlighted center of the window and press the
  250.         Enter key.  The window will close and the command will be pre-
  251.         loaded to the input line.
  252.  
  253.         The colors of the command window can be set with the /AB, /AH,
  254.         and /AX switches.  Toddy automatically selects a size for the
  255.         window based on the current text mode, but you can explicitly
  256.         select a size with the /SR and /SC switches.
  257.  
  258.         Unlike other aspects of Toddy, the history window manipulates the
  259.         hardware directly and may not work on non-standard video systems.
  260.  
  261.                                 Chained Commands
  262.                                 ----------------
  263.  
  264.         The chain character allows you to enter multiple commands on a
  265.         single line.  The default chain character is Ctrl-T, but may be
  266.         changed with the /CC switch.  If the chain character was defined
  267.         to be the caret (^), the command "arce files1^arce files2" will
  268.         run the two consecutive commands "arce files1" and "arce files2".
  269.         Any number of chained commands may be entered on a single line.
  270.         Macros (described later) may also contain chained commands.
  271.         Within macros and in the run command (/R), you can use $t to
  272.         chain commands together.
  273.  
  274.         Press Ctrl-Break to cancel a sequence of executing chained com-
  275.         mands.  Pressing Ctrl-Break may interrupt a sequence of chained
  276.         commands even when you are inside an application.
  277.  
  278.                                      Macros
  279.                                      ------
  280.  
  281.         A macro is a user defined command that's automatically replaced
  282.         by a single command or multiple commands chained together.
  283.         Macros behave like small batch files.  Some advantages of macros
  284.         over batch files are that macros are executed faster (because
  285.         they're stored in memory, not on disk), macros generally use less
  286.         disk space (because multiple macros can be stored in a single
  287.         file), macros can be defined or redefined on the fly, and macros
  288.         can have any name (for example you could have a macro called DIR,
  289.         but not a batch file).  Some possible uses for macros are renam-
  290.         ing commands (like defining D to execute a DIR) and applying
  291.  
  292.  
  293.  
  294.         default arguments to commands (for instance automatically apply-
  295.         ing the /W switch to all DIR commands).  Macros will NOT work in
  296.         batch files.  Macros are defined with the /MD and /ME switches
  297.         and cleared with the /MU, /MF, and /MC switches.  Macros can also
  298.         be defined using the syntax:
  299.  
  300.           TODDY macro=text
  301.  
  302.         where "macro" is the name of the macro and all characters after
  303.         the equal sign are what the macro does.  This second syntax for
  304.         defining macros is equivalent to the /ME switch.  Similarly, a
  305.         macro can be undefined with the syntax:
  306.  
  307.           TODDY macro=
  308.  
  309.         You can also load and save macros to files with the /MR and /MW
  310.         switches.  Use the /ML switch to list the currently defined
  311.         macros.  Some simple macros might be:
  312.  
  313.           TODDY d=dir
  314.           TODDY dir=dir /w
  315.           TODDY /md'clear'del *.obj $t del *.lst $t del *.map'
  316.  
  317.         The first example above makes D act like a DIR command.  The next
  318.         example automatically applies the /W switch to all DIR commands.
  319.         The last example creates a CLEAR command to delete all OBJ, LST,
  320.         and MAP files from the current directory.  The first two examples
  321.         use one format for defining macros and the third example uses the
  322.         other format.  The third example uses the special character
  323.         sequence "$t" to chain multiple commands together.
  324.  
  325.         Macros can access command line arguments in the same way as batch
  326.         files.  The first 99 arguments are retrieved using the parameters
  327.         $1 to $99.  The special parameter $* returns all arguments start-
  328.         ing after the largest previously retrieved argument.  For in-
  329.         stance, if you referred to $11 in your macro, a $* will return
  330.         all arguments starting with $12.  Also, you can return all argu-
  331.         ments starting with a particular argument number using the syntax
  332.         $n*, where "n" is the starting argument number.  For instance,
  333.         $7* will return all arguments starting with the seventh.  The
  334.         character indicating a parameter, a dollar sign by default, can
  335.         be changed with the /CP switch; and the character for multiple
  336.         arguments, a asterisk by default, can be changed with the /CM
  337.         switch.
  338.  
  339.         A more useful definition of the DIR macro above would use a
  340.         parameter as follows:
  341.  
  342.           TODDY dir=dir $1 /w
  343.  
  344.         With this macro definition, a DIR without arguments would expand
  345.         to "DIR /W", and a "DIR *.COM" would expand to "DIR *.COM /W".
  346.         Another example:
  347.  
  348.           TODDY tcc=tcc -v $* userlib.lib
  349.  
  350.  
  351.  
  352.  
  353.         This macro replaces TCC with one that automatically specifies
  354.         multiple command line arguments.  If you ran "tcc -O zipper",
  355.         you'd actually be running "tcc -v -O zipper userlib.lib".
  356.  
  357.         In addition to the $t used earlier, there are several other
  358.         special parameters:
  359.  
  360.           $$           replaced with parameter character ($)
  361.           $b           replaced with bar (|)
  362.           $l           replaced with less-than (<)
  363.           $g           replaced with greater-than (>)
  364.           $q           replaced with removable quote (see Quotes section)
  365.           $s           parameter sink
  366.  
  367.         The first five parameters above are simply replaced by the speci-
  368.         fied character.  These parameters are necessary if you are creat-
  369.         ing a macro at the DOS prompt or in a batch file, because Toddy
  370.         normally uses and absorbs the parameter and quote character, and
  371.         DOS normally uses and absorbs the bar, greater, and less-than
  372.         characters.  The parameter sink works like the $* parameter
  373.         except an empty string is returned.  The parameter sink is some-
  374.         times necessary because Toddy automatically appends unreferenced
  375.         trailing arguments, as if there was $* automatically appended all
  376.         macros.  To suppress any trailing arguments, you must use the
  377.         parameter sink.  See the two DIR macros below for an example of
  378.         using the $s parameter.  All of the special parameters using a
  379.         letter can use an upper or lowercase letter.
  380.  
  381.         You can also expand a macro within the body of another macro.  To
  382.         do this, place the name of the macro to be expanded in parenthe-
  383.         ses after a dollar sign.  For instance:
  384.  
  385.           TODDY diropt=/w
  386.           TODDY dir=dir $* $(diropt)
  387.  
  388.         In this example, the DIR switches are saved in the macro "diropt"
  389.         and then added to the end of the "dir" macro.  Now you could
  390.         change the switches used in the dir macro simply by changing the
  391.         diropt setting.  This document refers to macros used in this
  392.         manner as variables.  The characters used to enclose the macro
  393.         name (parentheses) can be changed with the /CV and /CW switches.
  394.  
  395.         Macros may be defined multiple times.  The most recent definition
  396.         always takes precedence.  A macro may also call another macro.
  397.         If a macro calls a macro of the same name, the most recent defi-
  398.         nition (prior to the calling macro) will be called.  For in-
  399.         stance, if the following macros were defined:
  400.  
  401.           TODDY dir=dir $* /w
  402.           TODDY dir=cls $s $t dir $*
  403.  
  404.         a DIR command will call the second macro (because it's the most
  405.         recent definition).  This macro clears the screen (with CLS) and
  406.         calls DIR.  Since DIR has an earlier definition (the first
  407.  
  408.  
  409.  
  410.         macro), it's also called as a macro.  The net effect of running a
  411.         DIR command after defining the two macros above is to clear the
  412.         screen and perform a DOS DIR command with the /W switch.  The
  413.         parameter sink ($s) is necessary in the second macro to prevent
  414.         any arguments from being appended to the CLS command.
  415.  
  416.         If a command is preceded by the "literal character," it is not
  417.         interpreted as a macro.  The literal character is undefined by
  418.         default, but can be defined with the /CL switch.  If the literal
  419.         character was defined to be an exclamation mark, running "!DIR"
  420.         will execute the standard DOS directory command regardless of any
  421.         DIR macro definitions.
  422.  
  423.         Toddy beeps, cancels all running macros, and returns an empty
  424.         input line if: 1. the macros are nested too deeply, 2. the macro
  425.         expansion is too long, or 3. the quote parameter ($q) or chain
  426.         parameter ($t) are used and no quote or chain character is de-
  427.         fined.  The macro expansion may be too long internally (see the
  428.         /B switch) or too long for the command line (127 bytes for COM-
  429.         MAND.COM, and 255 bytes for 4DOS and NDOS).  A potential macro
  430.         nest problem is circular macro references.  For instance:
  431.  
  432.           TODDY a=b
  433.           TODDY b=a
  434.  
  435.         You will always get an error if you try to run one of these two
  436.         macros because these macros continuously call each other until
  437.         the macro nest level is exceeded.
  438.  
  439.                                      Quotes
  440.                                      ------
  441.  
  442.         Macro arguments are defined as sequences of characters separated
  443.         by spaces, so there's no way retrieve an argument that contains
  444.         spaces unless you use quotes.  All characters inside and includ-
  445.         ing double quotes (") are treated as a single argument.  For
  446.         instance, if you defined the following macro:
  447.  
  448.            TODDY g=grep $1 *.*
  449.  
  450.         the following command will work properly because quotes are used:
  451.  
  452.            g "a blank"
  453.  
  454.         Toddy recognizes two kinds of quotes: text and removable.  Text
  455.         quotes work as described above and removable quotes work similar-
  456.         ly, but are removed when the line is evaluated.  The default
  457.         removable quote is the back quote character (`).  If you defined
  458.         the following macro:
  459.  
  460.           TODDY e=echo ($1)
  461.  
  462.         running:
  463.  
  464.           e `a b c d`
  465.  
  466.  
  467.  
  468.  
  469.         will display:
  470.  
  471.           (a b c d)
  472.  
  473.         Chain characters are not evaluated inside of quoted arguments,
  474.         but parameters ($1, $2, $t, etc.) are.  If you want to use the
  475.         parameter character inside of a quoted string, use the special
  476.         parameter $$.
  477.  
  478.         The text and removable quote characters can be redefined with the
  479.         /CX and /CQ switches.  You can also define a second text quote
  480.         character with the /CY switch.
  481.  
  482.                                    Key Macros
  483.                                    ----------
  484.  
  485.         Key macros are similar to normal macros, but are assigned to and
  486.         invoked by a keystroke.  Key macros can perform operations spe-
  487.         cific to Toddy (like moving the cursor or modifying the command
  488.         history), running DOS commands, or some combination of both.  All
  489.         the default Toddy key assignments are saved as key macros, and
  490.         may be changed.  Key macros may consist of any combination of
  491.         normal letters (like '5' and 'B'), non-printable keys (like Enter
  492.         and F1), and internal commands (like 'HistoryOlder' and 'Delete-
  493.         Line').  Key macros are defined the same way as normal macros.
  494.         The first part of a key macro is always the key that is to be
  495.         reassigned.  You can only reassign the "non-printable" keys, like
  496.         Ctrl- and Alt- key combinations, the function keys, arrow keys,
  497.         Enter, Tab, etc.  Key macros are defined with the /KD and /KE
  498.         switches and cleared with the /KF, /KU, and /KC switches.  Key
  499.         macros can also be defined using the syntax:
  500.  
  501.           TODDY key=text
  502.  
  503.         where "key" is an assignable key and all characters after the
  504.         equal sign are the characters that should be typed or commands
  505.         that should be performed.  This second syntax for defining key
  506.         macros is equivalent to the /KE switch.  Similarly, a key macro
  507.         can be undefined with the syntax:
  508.  
  509.           TODDY key=
  510.  
  511.         You can also load and save key macros to files with the /KR and
  512.         /KW switches.  Use the /KL switch to list the current key assign-
  513.         ments.
  514.  
  515.         You may define multiple assignments for the same key, however
  516.         only the most recent assignment is active.  Defining a key macro
  517.         that refers to itself will cause an infinite loop, though Toddy
  518.         will usually detect this situation and abort the key macro.  You
  519.         can also press Ctrl-Break to abort a key macro.
  520.  
  521.         Non-printable keys and internal commands are specified using
  522.         special names in brackets.  The following is a complete list of
  523.  
  524.  
  525.  
  526.         key names.  These are the keys that can be reassigned and used
  527.         within the body of key macros:
  528.  
  529.           [Backspace]           [Alt-D]                [Shift-F4]
  530.           [Tab]                 [Alt-E]                [Shift-F5]
  531.           [Enter]               [Alt-F]                [Shift-F6]
  532.           [Escape]              [Alt-G]                [Shift-F7]
  533.           [Shift-Tab]           [Alt-H]                [Shift-F8]
  534.           [Ctrl-Enter]          [Alt-I]                [Shift-F9]
  535.           [Ctrl-Slash]          [Alt-J]                [Shift-F10]
  536.           [Ctrl-Minus]          [Alt-K]                [Ctrl-F1]
  537.           [Ctrl-Backspace]      [Alt-L]                [Ctrl-F2]
  538.           [Alt-Minus]           [Alt-M]                [Ctrl-F3]
  539.           [Alt-Equal]           [Alt-N]                [Ctrl-F4]
  540.           [Ctrl-2]              [Alt-O]                [Ctrl-F5]
  541.           [Ctrl-6]              [Alt-P]                [Ctrl-F6]
  542.           [Alt-0]               [Alt-Q]                [Ctrl-F7]
  543.           [Alt-1]               [Alt-R]                [Ctrl-F8]
  544.           [Alt-2]               [Alt-S]                [Ctrl-F9]
  545.           [Alt-3]               [Alt-T]                [Ctrl-F10]
  546.           [Alt-4]               [Alt-U]                [Alt-F1]
  547.           [Alt-5]               [Alt-V]                [Alt-F2]
  548.           [Alt-6]               [Alt-W]                [Alt-F3]
  549.           [Alt-7]               [Alt-X]                [Alt-F4]
  550.           [Alt-8]               [Alt-Y]                [Alt-F5]
  551.           [Alt-9]               [Alt-Z]                [Alt-F6]
  552.           [Ctrl-A]              [Left]                 [Alt-F7]
  553.           [Ctrl-B]              [Right]                [Alt-F8]
  554.           [Ctrl-C]              [Up]                   [Alt-F9]
  555.           [Ctrl-D]              [Down]                 [Alt-F10]
  556.           [Ctrl-E]              [PageUp]
  557.           [Ctrl-F]              [PageDown]
  558.           [Ctrl-G]              [Home]
  559.           [Ctrl-H]              [End]
  560.           [Ctrl-I]              [Ctrl-Left]
  561.           [Ctrl-J]              [Ctrl-Right]
  562.           [Ctrl-K]              [Ctrl-PageUp]
  563.           [Ctrl-L]              [Ctrl-PageDown]
  564.           [Ctrl-M]              [Ctrl-Home]
  565.           [Ctrl-N]              [Ctrl-End]
  566.           [Ctrl-O]              [Insert]
  567.           [Ctrl-P]              [Delete]
  568.           [Ctrl-Q]              [F1]
  569.           [Ctrl-R]              [F2]
  570.           [Ctrl-S]              [F3]
  571.           [Ctrl-T]              [F4]
  572.           [Ctrl-U]              [F5]
  573.           [Ctrl-V]              [F6]
  574.           [Ctrl-W]              [F7]
  575.           [Ctrl-X]              [F8]
  576.           [Ctrl-Y]              [F9]
  577.           [Ctrl-Z]              [F10]
  578.           [Alt-A]               [Shift-F1]
  579.           [Alt-B]               [Shift-F2]
  580.           [Alt-C]               [Shift-F3]
  581.  
  582.  
  583.  
  584.         You may not be able to assign some the keys above (like Ctrl-S
  585.         and Ctrl-P) unless you use the /KT switch.  Some possible keys
  586.         are not listed (like [F11] and [F12]) because DOS doesn't recog-
  587.         nize these keys.  Key macros may also directly call many internal
  588.         Toddy commands.  The following is a complete list of available
  589.         internal commands:
  590.  
  591.           [CursorLeft]           move the cursor left
  592.           [CursorRight]          move the cursor right
  593.           [CursorNext]           move the cursor to the next word
  594.           [CursorPrevious]       move the cursor to the previous word
  595.           [CursorHome]           move the cursor to the start of the line
  596.           [CursorEnd]            move the cursor to the end of the line
  597.           [DeleteCharacter]      delete the character under the cursor
  598.           [DeleteBackward]       delete the character left of the cursor
  599.           [DeleteNext]           delete the word left of the cursor
  600.           [DeletePrevious]       delete the word right of the cursor
  601.           [DeleteHome]           delete all characters left of the cursor
  602.           [DeleteEnd]            delete all chars right of the cursor
  603.           [DeleteLine]           delete entire line
  604.           [InsertOn]             turn insert mode on
  605.           [InsertOff]            turn insert mode off (overwrite mode)
  606.           [InsertToggle]         toggle the insert state
  607.           [HistorySkip]          don't add line to history when run
  608.           [HistoryReset]         add line to history when run
  609.           [HistoryAdd]           add line to history right now
  610.           [HistoryDelete]        delete current history line
  611.           [HistoryClear]         erase the entire history
  612.           [HistoryOlder]         load the next older history line
  613.           [HistoryNewer]         load the next newer history line
  614.           [HistoryTrace]         load the next older history trace line
  615.           [HistoryOldest]        load the oldest history line
  616.           [HistoryNewest]        load the newest history line
  617.           [HistoryForward]       search newer history entries
  618.           [HistoryBackward]      search older history entries
  619.           [NameForward]          find next matching file name
  620.           [NameBackward]         find previous matching file name
  621.           [NameAppend]           find next matching file name and append
  622.           [TemplateCharacter]    load next DOS template character
  623.           [TemplateAppend]       append rest of DOS template
  624.           [TemplateInsert]       insert DOS template characters
  625.           [TemplateSkip]         skip DOS template characters
  626.           [TemplateEOF]          insert EOF character
  627.           [Run]                  run the current command
  628.           [RunDirect]            run raw command (no processing)
  629.           [Mask]                 next letter is control character
  630.  
  631.         You can also insert a literal character by placing a number (the
  632.         ASCII code of the character) in brackets.  For instance, you can
  633.         insert a Tab character (ASCII code 9) with [9].  Note: for ASCII
  634.         code 13 (carriage return), you must use "[Mask]M" instead.  The
  635.         characters used to surround key names, internal commands, and
  636.         literal characters, which are brackets by default, can be changed
  637.         with the /CB and /CE switches.
  638.  
  639.  
  640.  
  641.  
  642.         The default key macros / assignments are:
  643.  
  644.           [Left]=[CursorLeft]
  645.           [Right]=[TemplateCharacter]
  646.           [Up]=[HistoryOlder]
  647.           [Down]=[HistoryTrace]
  648.           [Home]=[CursorHome]
  649.           [End]=[CursorEnd]
  650.           [PageUp]=[HistoryOldest]
  651.           [PageDown]=[HistoryNewest]
  652.           [Ctrl-Left]=[CursorPrevious]
  653.           [Ctrl-Right]=[CursorNext]
  654.           [Ctrl-Home]=[DeleteHome]
  655.           [Ctrl-End]=[DeleteEnd]
  656.           [Ctrl-PageUp]=[HistoryOldest]
  657.           [Ctrl-PageDown]=[HistoryNewest]
  658.           [Tab]=[HistoryBackward]
  659.           [Shift-Tab]=[HistoryForward]
  660.           [Backspace]=[DeleteBackward]
  661.           [Ctrl-Backspace]=[DeletePrevious]
  662.           [Insert]=[InsertToggle]
  663.           [Escape]=[DeleteLine]
  664.           [Delete]=[DeleteCharacter]
  665.           [Enter]=[Run]
  666.           [Ctrl-Enter]=[HistorySkip][RunDirect]
  667.           [F1]=[TemplateCharacter]
  668.           [F2]=[TemplateInsert]
  669.           [F3]=[TemplateAppend]
  670.           [F4]=[TemplateSkip]
  671.           [F5]=[HistoryAdd][DeleteLine]
  672.           [F6]=[TemplateEOF]
  673.           [Alt-F7]=[HistoryClear]
  674.           [F9]=[NameForward]
  675.           [Shift-F9]=[NameBackward]
  676.           [F10]=[NameAppend]
  677.           [Ctrl-D]=[HistoryDelete]
  678.           [Ctrl-K]=[HistoryAdd][DeleteLine]
  679.           [Ctrl-L]=[DeletePrevious]
  680.           [Ctrl-R]=[DeleteNext]
  681.           [Ctrl-V]=[Mask]
  682.  
  683.         Some systems assign Tab (instead of F9) to file name matching.
  684.         To switch F9 and Tab, use the following key macros:
  685.  
  686.           [Tab]=[NameMatch]
  687.           [Shift-Tab]=[NamePrevious]
  688.           [F9]=[HistoryReverse]
  689.           [Shift-F9]=[HistoryForward]
  690.  
  691.         Since searching with a blank line finds all occurences, you may
  692.         want to assign the up and down arrow keys to forward and reverse
  693.         command history searching:
  694.  
  695.           [Up]=[HistoryReverse]
  696.  
  697.  
  698.  
  699.           [Down]=[HistoryForward]
  700.  
  701.         The default assignments for PageUp (and PageDown) may not be very
  702.         useful, so try the following assignment for PageUp:
  703.  
  704.           [PageUp]=[DeleteLine]toddy[Enter]
  705.  
  706.         You can implement the basic Wordstar commands commands with the
  707.         following assignments:
  708.  
  709.           [Ctrl-S]=[CursorLeft]
  710.           [Ctrl-D]=[CursorRight]
  711.           [Ctrl-E]=[HistoryOlder]
  712.           [Ctrl-X]=[HistoryNewer]
  713.           [Ctrl-A]=[CursorPrevious]
  714.           [Ctrl-F]=[CursorNext]
  715.           [Ctrl-G]=[DeleteCharacter]
  716.           [Ctrl-Y]=[DeleteLine]
  717.  
  718.         To use the Wordstar key Ctrl-S listed above, you will probably
  719.         have to use the /KT (and possibly /BS) switch first.
  720.  
  721.                                     Switches
  722.                                     --------
  723.  
  724.         Switches are used to configure Toddy before or after it has been
  725.         installed.  A summary of the Toddy command line switches can be
  726.         displayed by running:
  727.  
  728.           TODDY /?
  729.  
  730.         In the switch descriptions of the following sections, "d" denotes
  731.         a decimal digit, "x" denotes a hexadecimal digit, "'s'" denotes a
  732.         string in quotes, and "file" denotes a file name.  The number of
  733.         decimal or hexadecimal digits serve only as a general reference
  734.         to the magnitude of the expected number -- in most cases fewer
  735.         digits are allowed.
  736.  
  737.                                  Switch Summary
  738.                                  --------------
  739.  
  740.         Installation:
  741.  
  742.           /Bddddd      input buffer size
  743.           /BSddd       restricted input buffer size
  744.           /Mddd        multiplex number
  745.           /Q           quiet mode
  746.           /V           verbose mode
  747.           /E           enable Toddy
  748.           /D           disable Toddy
  749.           /U           uninstall Toddy
  750.           /W           write switches to TODDY.COM
  751.           /ORfile      read configuration file
  752.           /OWfile      write configuration file
  753.           /KTd         keyboard input type
  754.  
  755.  
  756.  
  757.           /UI          uppercase ignored
  758.           /US          uppercase significant
  759.           /WU          public Windows data
  760.           /WP          private Windows data
  761.  
  762.         Attributes (colors):
  763.  
  764.           /ATxx        text attribute
  765.           /ACxx        cursor attribute
  766.           /AExx        end attribute
  767.  
  768.           /ABxx        command window border
  769.           /AHxx        command window highlight
  770.           /AXxx        command window text
  771.  
  772.         Cursor Type:
  773.  
  774.           /TC          use custom cursor
  775.           /TS          use system cursor
  776.           /TExxxx      entry cursor type
  777.           /TIxxxx      insert cursor type
  778.           /TOxxxx      overwrite cursor type
  779.           /TXxxxx      exit cursor type
  780.  
  781.         Characters:
  782.  
  783.           /CBddd       key command begin character
  784.           /CEddd       key command end character
  785.           /CVddd       start of variable character
  786.           /CWddd       end of variable character
  787.           /CQddd       quote character
  788.           /CXddd       text quote character one
  789.           /CYddd       text quote character two
  790.           /CPddd       parameter character
  791.           /CMddd       multiple argument character
  792.           /CLddd       literal character
  793.           /CCddd       chain character
  794.  
  795.         Insert Mode:
  796.  
  797.           /II          select insert mode
  798.           /IO          select overwrite mode
  799.           /IR          reset insert
  800.           /IP          preserve insert
  801.  
  802.         File Name Completion:
  803.  
  804.           /NSddddd     file name match size
  805.           /NTxx        file name match types
  806.           /NL          display names in lowercase letters
  807.           /NU          display names in uppercase letters
  808.           /NC          clean directory name
  809.           /NB          add backslash to directory name
  810.  
  811.         History Window:
  812.  
  813.  
  814.  
  815.  
  816.           /S           select a command (open window)
  817.           /SCddd       window columns
  818.           /SRddd       window rows
  819.  
  820.         History:
  821.  
  822.           /HSddddd     command history size
  823.           /HMddd       minimum command length
  824.           /HP          pure command history
  825.           /HI          impure command history
  826.           /HD          delete command from history when run
  827.           /HK          keep command in history when run
  828.           /HU          save unique commands
  829.           /HA          save all commands
  830.           /HL          lock history
  831.           /HF          free history
  832.           /HN          no history trace recover
  833.           /HT          history trace recover
  834.           /HC          clear history
  835.           /HRfile      read history from file
  836.           /HWfile      write history to file
  837.  
  838.         Macros:
  839.  
  840.           /MSddddd     macro table size
  841.           /MNddd       maximum macro nest
  842.           /MD's's'     define macro
  843.           /ME's's'     exchange (replace) macro
  844.           /MU's'       undefine macro
  845.           /MF's'       forget macro
  846.           /MC          clear all macros
  847.           /ML          list macros
  848.           /MRfile      read macros from file
  849.           /MWfile      write macros to file
  850.  
  851.         Key Macros:
  852.  
  853.           /KSddddd     key macro stack size
  854.           /KD's's'     define key macro
  855.           /KE's's'     exchange key macro
  856.           /KU's'       undefine key macro
  857.           /KF's'       forget key macro
  858.           /KC          clear all key macros
  859.           /KL          list key macros
  860.           /KRfile      read key macros from file
  861.           /KWfile      write key macros to file
  862.  
  863.         Variables:
  864.  
  865.           /VLddd       maximum variable length
  866.           /VNddd       maximum variable nest
  867.  
  868.         Miscellaneous:
  869.  
  870.  
  871.  
  872.           /A           display memory allocations
  873.           /R's'        run a command
  874.  
  875.                                Switch Descriptions
  876.                                -------------------
  877.  
  878.         /A        Display memory allocations.  The first three numbers
  879.                   displayed are the memory allocated for the command
  880.                   history, macro defintions, and file name completion.
  881.                   The next three numbers are the total heap memory
  882.                   (usually the sum of the first three numbers), the
  883.                   memory used by macro definitions, and the amount of
  884.                   available heap memory.  The next four numbers are the
  885.                   maximum macro nest, size of variable data areas, the
  886.                   keyboard stack size, and the input buffer size.  The
  887.                   last number is the total bytes used by all the data
  888.                   areas.  All available heap memory can be used for
  889.                   macros.  Key macros are allocated from the same pool of
  890.                   memory as normal macros.  Whatever memory isn't used by
  891.                   macros is used for the command history (or the file
  892.                   name completion commands if needed).  See the Notes
  893.                   section for more information on memory usage.
  894.  
  895.         /ABxx     Set the attribute of the command history window border.
  896.                   The /AC switch describes attribute bytes.  The default
  897.                   is /AB7.
  898.  
  899.         /ACxx     Set the attribute of the character under the cursor.
  900.                   The first digit of the attribute byte is the background
  901.                   color and the second digit is the foreground color.
  902.                   Color values of 0 to 7 correspond to black, blue, green
  903.                   cyan, red, magenta, brown, and white.  Adding 8 to the
  904.                   lower digit makes the foreground color brighter.
  905.                   Adding 8 to the upper digit usually makes the fore-
  906.                   ground blink.  The default is /AC7 (white on black).
  907.  
  908.         /AExx     Set the attribute of the blanks following the text.
  909.                   The /AC switch describes attribute bytes.  The default
  910.                   is /AE7.
  911.  
  912.         /AHxx     Set the attribute of the command history select line
  913.                   (i.e. the "highlight" color).  The /AC switch describes
  914.                   attribute bytes.  The default is /AH70.
  915.  
  916.         /ATxx     Set the attribute of the text.  The /AC switch de-
  917.                   scribes attribute bytes.  The default is /AT7.
  918.  
  919.         /AHxx     Set the attribute of the command history text.  The /AC
  920.                   switch describes attribute bytes.  The default is /AX7.
  921.  
  922.         /Bddddd   Set the input buffer size.  This is the number of bytes
  923.                   reserved for entering commands and expanding macros.
  924.                   If there is an error running a macro, you may have to
  925.                   make this number larger.  The minimum value is 255 and
  926.                   the default is /B512.  If you don't use macros, or only
  927.  
  928.  
  929.  
  930.                   use short macros, you could conserve memory by reducing
  931.                   this number to the minimum.
  932.  
  933.         /BSddd    Set the restricted input buffer size.  If this switch
  934.                   is used, Toddy will only process input when the speci-
  935.                   fied number of characters are requested.  This switch
  936.                   is particularly useful in disabling Toddy when running
  937.                   several DOS commands, like LABEL, DEBUG, and FORMAT.
  938.                   If you are using type 7 input (see the /KT switch), you
  939.                   may have to use the /BS switch to enable Ctrl-Break
  940.                   within these DOS commands.  If you are using 4DOS or
  941.                   NDOS, use /BS255, otherwise use /BS128.  The default is
  942.                   /BS0 (unrestricted input size).
  943.  
  944.         /CBddd    Define key command begin character.  This is the char-
  945.                   acter that starts one of the special names (keys or
  946.                   internal commands) used by key macros.  The number is
  947.                   the ASCII code of the character.  The default is /CB91
  948.                   (a left bracket).
  949.  
  950.         /CCddd    Define the chain character.  The chain character is
  951.                   used to enter multiple commands on single line or in a
  952.                   macro.  The number is the ASCII code of the character.
  953.                   The chain character cannot be a space.  The default is
  954.                   /CC20 (Ctrl-T).
  955.  
  956.         /CEddd    Define key command end character.  This is the charac-
  957.                   ter that ends one of the special names (keys or inter-
  958.                   nal commands) used by key macros.  The number is the
  959.                   ASCII code of the character.  The default is /CE93 (a
  960.                   right bracket).
  961.  
  962.         /CLddd    Define the literal character.  A literal character
  963.                   forces Toddy to pass a command directly to DOS without
  964.                   interpreting it as a macro.  The number is the ASCII
  965.                   code of the character.  The literal character cannot be
  966.                   a space.  The default is /CL0 (no literal character
  967.                   defined).
  968.  
  969.         /CMddd    Define the multiple argument character.  The multiple
  970.                   argument character is used with regular macro parame-
  971.                   ters to refer to all following arguments.  The number
  972.                   is the ASCII code of the character.  The multiple
  973.                   argument character cannot be a space.  The default is
  974.                   /CM42 (an asterisk).
  975.  
  976.         /CPddd    Define the parameter character.  This is the character
  977.                   used to specify parameters within macros.  The number
  978.                   is the ASCII code of the character.  The parameter
  979.                   character cannot be a space.  The default is /CP36 (a
  980.                   dollar sign).
  981.  
  982.         /CQddd    Define the removable quote character.  This character
  983.                   is primarily used to delimit macro parameters contain-
  984.                   ing spaces or chain characters.  The number is the
  985.  
  986.  
  987.  
  988.                   ASCII code of the character.  The default is /CP96 (a
  989.                   back quote).
  990.  
  991.         /CVddd    Define the variable begin character.  This is the
  992.                   character that starts a name of a macro that is to be
  993.                   expanded inside the body of another macro.  The number
  994.                   is the ASCII code of the character.  The default is
  995.                   /CV40 (a left parenthesis).
  996.  
  997.         /CWddd    Define the variable end character.  This is the charac-
  998.                   ter that ends the name of a macro that is to be expand-
  999.                   ed inside the body of another macro.  The number is the
  1000.                   ASCII code of the character.  The default is /CW41 (a
  1001.                   right parenthesis).
  1002.  
  1003.         /CXddd    Define the text quote character.  This character delim-
  1004.                   its macro parameters containing spaces or chain charac-
  1005.                   ters.  The number is the ASCII code of the character.
  1006.                   The default is /CP34 (a double quote).
  1007.  
  1008.         /CYddd    Define the alternate text quote character.  This char-
  1009.                   acter delimits macro parameters containing spaces or
  1010.                   chain characters.  The number is the ASCII code of the
  1011.                   character.  The default is /CP0 (undefined).
  1012.  
  1013.         /D        Disable the resident Toddy.  All command input will be
  1014.                   performed by DOS as if Toddy wasn't installed.
  1015.  
  1016.         /E        Enable the resident Toddy.  This switch turns off the
  1017.                   /D switch.
  1018.  
  1019.         /HA       Save all commands to the command history.  This switch
  1020.                   turns off the /HU switch.  This is the default.
  1021.  
  1022.         /HC       Clear command history.  All saved commands are deleted.
  1023.                   If you want to save a sequence of DOS commands as a
  1024.                   batch file (with the /HW switch), you could use this
  1025.                   switch to first clear any previously saved commands.
  1026.                   You can also clear the command history by pressing
  1027.                   Alt-F7.
  1028.  
  1029.         /HD       Command history delete.  When a command is selected and
  1030.                   run from the command history, it is deleted from the
  1031.                   command history (though it will usually be saved back
  1032.                   to the top of the history).  The difference between
  1033.                   this switch and /HP is that this switch only deletes a
  1034.                   previous command when it has been selected, while /HP
  1035.                   deletes previous (identical) commands whether they've
  1036.                   been selected or you've typed in a new command from
  1037.                   scratch.  This is switch is the default.
  1038.  
  1039.         /HK       Command history keep.  Commands that are selected and
  1040.                   run from the command history will not be deleted.  This
  1041.                   switch turns off the /HD switch.
  1042.  
  1043.  
  1044.  
  1045.         /HF       Free the command history.  Commands will be saved to
  1046.                   the command history normally.  This switch turns off
  1047.                   the /HL switch.
  1048.  
  1049.         /HI       Impure command history.  Identical commands will not be
  1050.                   deleted from the command history.  This switch turns
  1051.                   off the /HP switch.
  1052.  
  1053.         /HL       Lock the command history.  This switch prevents further
  1054.                   commands from being saved to the command history.  You
  1055.                   can unlock the history with the /HF switch.
  1056.  
  1057.         /HMddd    Set the minimum command length.  All commands that are
  1058.                   shorter than this value are not saved to the command
  1059.                   history.  This switch is useful if you don't want to
  1060.                   save trivial commands like DIR or CLS.  The default is
  1061.                   /HM0 (all commands are saved).
  1062.  
  1063.         /HN       No history trace recover.  If the history cannot be
  1064.                   traced from the last command, the down arrow key will
  1065.                   do nothing.
  1066.  
  1067.         /HP       Pure command history.  This switch forces Toddy to
  1068.                   delete all duplicate saved commands in the command
  1069.                   history, and when a new command is saved, to check for
  1070.                   and delete any previously saved identical commands.
  1071.  
  1072.         /HRfile   Read the command history from a file.  Each line of the
  1073.                   specified file is added to the command history.  If the
  1074.                   command history is not large enough, older lines are
  1075.                   deleted to make room.  The normal criteria for saving
  1076.                   commands (like minimum length) are ignored.  The file
  1077.                   may be created from scratch or be a previously saved
  1078.                   history.  The file must be a standard text file.
  1079.  
  1080.         /HSddddd  Set the command history size.  The command history size
  1081.                   is the number of bytes reserved for saving commands.
  1082.                   If you don't use the command history, you can conserve
  1083.                   memory by setting the size to 0 with /HS0.  The default
  1084.                   is /HS256.
  1085.  
  1086.         /HT       History trace recover.  If the history cannot be
  1087.                   traced, the down arrow will load the next newer command
  1088.                   from the command history (or wrap around to the oldest
  1089.                   entry).  This is the default setting.
  1090.  
  1091.         /HU       Save unique commands only.  Toddy will scan the command
  1092.                   history and only save a command if it's different than
  1093.                   all the other saved commands.  This switch has the
  1094.                   opposite effect of the /HA switch.
  1095.  
  1096.         /HWfile   Write the command history to a file.  All commands
  1097.                   stored in the command history are written to the speci-
  1098.                   fied file.  The commands are saved as a standard text
  1099.                   file.  This switch can be used to run a sequence of DOS
  1100.  
  1101.  
  1102.  
  1103.                   commands and then save them as a batch file.  The file
  1104.                   can also be reloaded with the /HR switch.
  1105.  
  1106.         /II       Select insert mode for editing.  This is the default
  1107.                   mode.
  1108.  
  1109.         /IO       Select overwrite mode for editing.
  1110.  
  1111.         /IP       Preserve the insert/overwrite mode between commands.
  1112.                   The insert or overwrite mode is preserved from the last
  1113.                   time a command was entered.  This switch has the oppo-
  1114.                   site effect of the /IR switch.
  1115.  
  1116.         /IR       Reset the insert/overwrite mode between commands.  Each
  1117.                   time a command is entered, the mode will be set to
  1118.                   insert or overwrite (depending on the current mode when
  1119.                   this switch is used).  This switch has the opposite
  1120.                   effect of the /IP switch.  This is the default.
  1121.  
  1122.         /KC       Clear all key macro definitions.  This switch can be
  1123.                   used to delete all currently defined key macros, or to
  1124.                   ignore any key macros saved to TODDY.COM when install-
  1125.                   ing.
  1126.  
  1127.         /KD's's'  Define a key macro.  This parameter uses two fields,
  1128.                   the key name and the replacement text.  The first
  1129.                   character after the /KD is the definition delimiter.
  1130.                   Though this delimiter is usually a quote (or double
  1131.                   quote), it can be any character not used in the key
  1132.                   name or replacement text.  There are three delimiters:
  1133.                   one at the start of the key name, one separating the
  1134.                   key name from the replacement text, and one at the end
  1135.                   of the replacement text.  The key name must be one of
  1136.                   the names listed in the Key Macros section.  The re-
  1137.                   placement text can contain normal characters, other
  1138.                   keys, or internal commands.  Note: this switch does not
  1139.                   remove any previous definitions of the key macro.  Use
  1140.                   the /KE switch to replace the most recent definition of
  1141.                   a key macro.  Key macros are described in the Key
  1142.                   Macros section.
  1143.  
  1144.         /KE's's'  Exchange a key macro.  This switch replaces the most
  1145.                   recent definition of a key macro, which is equivalent
  1146.                   to undefining then defining a key macro.  The syntax
  1147.                   and usage are identical to the /ED switch.
  1148.  
  1149.         /KF's'    Forget a key macro.  This switch clears all definitions
  1150.                   of a key macro (not just the most recent definition).
  1151.                   The key name is delimited similarly to the key macro
  1152.                   definition switch (/KD), except there is no replacement
  1153.                   text.  Use the /KU switch to clear only the most recent
  1154.                   definition.
  1155.  
  1156.         /KL       List key macros.  All currently defined key macros will
  1157.                   be displayed.
  1158.  
  1159.  
  1160.  
  1161.  
  1162.         /KRfile   Read key macros from a file.  The file must be a stand-
  1163.                   ard text file.  The file may be created by the user or
  1164.                   by saving key macros with the /KW switch.  Each line of
  1165.                   the file contains a single key macro definition.  The
  1166.                   key macros must be defined in the form:
  1167.  
  1168.                     key=text
  1169.  
  1170.                   where "key" is the key to assign and "text" is the
  1171.                   replacement text of the key macro.  All characters
  1172.                   after the first equals sign become part of the key
  1173.                   macro text.
  1174.  
  1175.         /KSddddd  Set the key macro stack size.  The replacement text of
  1176.                   key macros is limited to this setting.  This setting
  1177.                   does NOT affect the available space for saving key
  1178.                   macro definitions.  Key macro definitions are saved in
  1179.                   the same area as regular macros.  The minimum value is
  1180.                   2.  The default is /KS128.
  1181.  
  1182.         /KTd      Set the keyboard input type.  The two valid types are 7
  1183.                   and 8.  Type 7 input allows processing of several keys
  1184.                   normally interpreted by DOS: Ctrl-C, Ctrl-P, and Ctrl-
  1185.                   S.  However, type 7 input may not allow you to break
  1186.                   out of some DOS commands with Ctrl-Break.  Type 8 input
  1187.                   does not allow you to process the keys above, but does
  1188.                   allow you to break out of programs normally.  If you
  1189.                   use type 7 input, see the /BS switch.  The default is
  1190.                   /KT8.
  1191.  
  1192.         /KU's'    Undefine a key macro.  This switch clears the most
  1193.                   recent definition of a key macro.  The key name is
  1194.                   delimited similarly to the key macro definition switch
  1195.                   (/KD), except there is no replacement text.  Note that
  1196.                   a key macro may have multiple definitions and this
  1197.                   switch only clears the most recent.  Use the /KF switch
  1198.                   to clear all definitions of a key macro.
  1199.  
  1200.         /KWfile   Write key macros to a file.  All currently defined key
  1201.                   macros are written to the specified file.  The file is
  1202.                   a standard text file with one key macro definition per
  1203.                   line.  Key macros saved with this switch can be loaded
  1204.                   with the /KR switch.
  1205.  
  1206.         /Mddd     Set the multiplex number.  If you get the message
  1207.                   "Multiplex number in use by another program" when you
  1208.                   try to install Toddy, you can change the multiplex
  1209.                   number with the /M switch.  You should not set the
  1210.                   multiplex number after installing Toddy, and when you
  1211.                   do change the multiplex number, you should save the
  1212.                   setting with the /W switch.  The multiplex number
  1213.                   should be in the range 192 to 255.  The default is
  1214.                   /M215.  To change the multiplex number to 240, before
  1215.                   installing Toddy, run:
  1216.  
  1217.  
  1218.  
  1219.  
  1220.                     TODDY /m240 /w
  1221.  
  1222.         /MC       Clear all macro definitions.  This switch can be used
  1223.                   to delete all currently defined macros, or to ignore
  1224.                   any macros saved to TODDY.COM when installing.
  1225.  
  1226.         /MD's's'  Define a macro.  This parameter uses two fields, the
  1227.                   macro name and the replacement text.  The first charac-
  1228.                   ter after the /MD is the definition delimiter.  Though
  1229.                   this delimiter is usually a quote (or double quote), it
  1230.                   can be any character not used in the macro name or
  1231.                   replacement text.  There are three delimiters: one at
  1232.                   the start of the macro name, one separating the macro
  1233.                   name from the replacement text, and one at the end of
  1234.                   the replacement text.  The macro name can be any se-
  1235.                   quence of characters, though it shouldn't contain any
  1236.                   spaces.  The replacement text can contain any sequence
  1237.                   of characters.  Note: this switch does not remove any
  1238.                   previous definitions of the macro.  Use the /ME switch
  1239.                   to replace the most recent definition of a macro.
  1240.  
  1241.         /ME's's'  Exchange a macro.  This switch replaces the most recent
  1242.                   definition of a macro, which is equivalent to undefin-
  1243.                   ing then defining a macro.  The syntax and usage are
  1244.                   identical to the /MD switch.
  1245.  
  1246.         /MF's'    Forget a macro.  This switch clears all definitions of
  1247.                   a macro (not just the most recent definition).  The
  1248.                   macro name is delimited similarly to the macro defini-
  1249.                   tion switch (/MD), except there is no replacement text.
  1250.                   Use the /MU switch to clear only the most recent defi-
  1251.                   nition.
  1252.  
  1253.         /ML       List macros.  All currently defined macros will be
  1254.                   displayed.
  1255.  
  1256.         /MNddd    Set maximum macro nest level.  A nest level is used
  1257.                   whenever a macro calls another macro.  If the maximum
  1258.                   nest level is reached while running a macro, Toddy will
  1259.                   beep and abort the macro.  Toddy requires 4 bytes of
  1260.                   memory for each nest level.  If you don't use macros,
  1261.                   you can conserve memory by setting the nest level to 0
  1262.                   with /MN0.  The default is /MN10.
  1263.  
  1264.         /MRfile   Read macros from a file.  The file must be a standard
  1265.                   text file.  The file may be created by the user or by
  1266.                   saving macros with the /MW switch.  Each line of the
  1267.                   file contains a single macro definition.  The macros
  1268.                   must be defined in the form:
  1269.  
  1270.                     macro=text
  1271.  
  1272.                   where "macro" is the name of the macro and "text" is
  1273.                   the replacement text for the macro.  All characters
  1274.  
  1275.  
  1276.  
  1277.                   after the first equals sign become part of the macro
  1278.                   text.
  1279.  
  1280.         /MSddddd  Set the macro table size.  The macro table size is the
  1281.                   number of bytes reserved for macro definitions (includ-
  1282.                   ing key macros).  The default is /MS512.
  1283.  
  1284.         /MU's'    Undefine a macro.  This switch clears the most recent
  1285.                   definition of a macro.  The macro name is delimited
  1286.                   similarly to the macro definition switch (/MD), except
  1287.                   there is no replacement text.  Note that a macro may
  1288.                   have multiple definitions and this switch only clears
  1289.                   the most recent.  Use the /MF switch to clear all
  1290.                   definitions of a macro.
  1291.  
  1292.         /MWfile   Write macros to a file.  All currently defined macros
  1293.                   are written to the specified file.  The file is a
  1294.                   standard text file with one macro definition per line.
  1295.                   Macros saved with this switch can be loaded with the
  1296.                   /MR switch.
  1297.  
  1298.         /NB       Backslashed directory names.  Add a backslash to direc-
  1299.                   tory names inserted with F9 and F10.  Note that you
  1300.                   must first use the /NT switch with the proper value to
  1301.                   match directory names.  This is the default setting.
  1302.  
  1303.         /NC       Clean directory names.  Don't add a backslash to direc-
  1304.                   tory names inserted with F9 and F10.  This switch turns
  1305.                   off the /NB switch.
  1306.  
  1307.         /NL       Display file names in lowercase letters.  This switch
  1308.                   makes file names inserted with the F9 and F10 keys
  1309.                   appear in lowercase letters.
  1310.  
  1311.         /NSddddd  File name size.  This is the size of the area for
  1312.                   saving file names matched with F9 and F10, allowing you
  1313.                   to display previous matches with Shift-F9.  There is a
  1314.                   105 byte (or so) overhead for file name matching, so if
  1315.                   you specify a number less than 105, the number will be
  1316.                   changed to zero.  You can set this value to zero if you
  1317.                   don't use the file name completion commands.  The
  1318.                   default is /NS256.
  1319.  
  1320.         /NTxx     Select the file types for file name completion.  This
  1321.                   switch allows you to specify what types of files will
  1322.                   be matched by the file name completion commands (F9 and
  1323.                   F10).  The possible values are: 00 = normal file, 02 =
  1324.                   hidden files, 04 = system files, and 10 = directories.
  1325.                   Add the hexadecimal values together to combine types.
  1326.                   /NT10 (00 + 10) finds all normal files and directories.
  1327.                   /NT06 (00 + 02 + 04) finds all normal, hidden, and
  1328.                   system files. /NT16 (00 + 02 + 04 + 10) finds all files
  1329.                   and directories.  The default is /NT00 (find normal
  1330.                   files only).
  1331.  
  1332.  
  1333.  
  1334.         /NU       Display file names in uppercase letters.  This switch
  1335.                   makes file names inserted with the F9 and F10 keys
  1336.                   appear in uppercase letters.  This is the default
  1337.                   setting.
  1338.  
  1339.         /ORfile   Read configuration from a file.  All switch settings,
  1340.                   macros, and key assignments are loaded.  If no file
  1341.                   name is specified, the configuration will be loaded
  1342.                   from the file TODDY.CFG in the same directory as
  1343.                   TODDY.COM.  Usually, the configuration file is created
  1344.                   with the /OW switch.
  1345.  
  1346.         /OWfile   Write configuration to a file.  All switch settings,
  1347.                   macros, and key assignments are saved.  This switch
  1348.                   does NOT save the command history (you can use the /HW
  1349.                   and /HR switches to save and load the command history).
  1350.                   If no file name is specified, the configuration will be
  1351.                   saved to the file TODDY.CFG in the same directory as
  1352.                   TODDY.COM.  The configuration file TODDY.CFG will be
  1353.                   loaded automatically when Toddy is installed.  Configu-
  1354.                   ration files can also be loaded explicitly with the /OR
  1355.                   switch.  Configuration files are standard text files
  1356.                   with one switch per line, and can be created or modi-
  1357.                   fied with a standard text editor.
  1358.  
  1359.         /Q        Enable quiet mode.  When Toddy is in quiet mode, the
  1360.                   regular confirmation messages are suppressed -- only
  1361.                   error messages are displayed.
  1362.  
  1363.         /R's'     Run a command.  The specified command is preloaded to
  1364.                   the input buffer and the next time Toddy gets the
  1365.                   chance the command will be executed.  If this switch is
  1366.                   used in batch file, the command will be run as soon as
  1367.                   the batch file terminates.  The command is delimited
  1368.                   similarly to the macro definition switch (/MD), except
  1369.                   there is no replacement text.
  1370.  
  1371.         /S        Select a previous command.  This switch opens the
  1372.                   command history window and lets you select a past
  1373.                   command by scrolling through the command history.  Once
  1374.                   Toddy has been installed, running Toddy without any
  1375.                   command line arguments also performs this function.
  1376.  
  1377.         /SCddd    Set the number of columns used by the command history
  1378.                   window.  This the number includes the border.  The
  1379.                   default is /SC0, which tells Toddy to decide how many
  1380.                   columns.
  1381.  
  1382.         /SRddd    Set the number of rows used by the command history
  1383.                   window.  This number includes the border.  The default
  1384.                   is /SR0, which tells Toddy to decide how many rows.
  1385.  
  1386.         /TC       Use the custom cursor type defined with the /TE, /TI,
  1387.                   and /TO switches.  The /TE, /TI, and /TO switches
  1388.                   automatically set this switch.
  1389.  
  1390.  
  1391.  
  1392.  
  1393.         /TExxxx   Set the entry cursor type.  This switch sets both the
  1394.                   insert and overwrite cursor types.  This switch should
  1395.                   be used instead of the /TI and /TO switches.  The
  1396.                   cursor type is the size and shape of the blinking
  1397.                   cursor blob.  The first byte of this two byte value is
  1398.                   the top scan line number and the second byte is the
  1399.                   bottom scan line number.  The scan lines for CGA are
  1400.                   numbered 00 to 07, for EGA adapters it's 00 to 0D, and
  1401.                   for VGA adapters it's 00 to 0E.  The default cursor is
  1402.                   usually the bottom two scan lines (i.e. 0607 for CGA,
  1403.                   0C0D for EGA, and 0D0E for VGA).  You can make a big
  1404.                   blinking blob on most adapters with 000F.  You can turn
  1405.                   off the blinking cursor entirely on most adapters with
  1406.                   value of 2000.  The value FFFF is reserved by Toddy to
  1407.                   indicate that the cursor should not be modified.
  1408.  
  1409.         /TIxxxx   Set the insert cursor type.  This is the cursor type
  1410.                   used when in insert mode.  The /TE switch describes how
  1411.                   to set the cursor type.
  1412.  
  1413.         /TOxxxx   Set the overwrite cursor type.  This is the cursor type
  1414.                   used when in overwrite mode.  The /TE switch describes
  1415.                   how to set the cursor type.
  1416.  
  1417.         /TS       Use system cursor (i.e. don't make any changes to it).
  1418.                   This switch turns off all the custom cursor settings.
  1419.                   This is the default.
  1420.  
  1421.         /TXxxxx   Set exit cursor type.  This is the cursor type to use
  1422.                   when Toddy has finished inputting a line.  Generally,
  1423.                   this switch is used to restore the cursor after setting
  1424.                   it with the other cursor switches.  For this and the
  1425.                   other cursor switches, if no cursor is specified, the
  1426.                   current system cursor will be used (i.e. this switch
  1427.                   usually isn't necessary).
  1428.  
  1429.         /U        Uninstall Toddy.  This switch removes Toddy from memo-
  1430.                   ry.  It may not be possible to uninstall Toddy if
  1431.                   another TSR has been loaded after Toddy.
  1432.  
  1433.         /UI       Uppercase letters are ignored.  This switch turns off
  1434.                   the /UI switch and is the default setting.
  1435.  
  1436.         /US       Uppercase letters are significant.  If this switch is
  1437.                   specified, Toddy will treat upper and lowercase letters
  1438.                   as being different.  For instance, if you define a
  1439.                   macro called "DIR" and ran the command "dir", the macro
  1440.                   will NOT be run.  This switch also affects command
  1441.                   history operations, like searches and saving unique
  1442.                   commands (the /HU switch).  Note that DOS is NOT case-
  1443.                   sensitive -- this switch only affects Toddy.
  1444.  
  1445.         /V        Enable verbose mode.  This switch turns off the /Q
  1446.                   switch and is the default setting.
  1447.  
  1448.  
  1449.  
  1450.  
  1451.         /VLddd    Set the maximum length of the names of macros to be
  1452.                   expanded within other macros.  This number limits the
  1453.                   length of the macro name allowed in the $() macro
  1454.                   parameter, not the text that's expanded.  The default
  1455.                   is /VL16.
  1456.  
  1457.         /VNddd    Set the maximum nest level of macros expanded within
  1458.                   other macros.  Nest levels are used whenever a $()
  1459.                   parameter occurs within another $() parameter.  The
  1460.                   default is /VN10.
  1461.  
  1462.         /W        Write current settings to TODDY.COM.  All switches, key
  1463.                   assignments, and macros will be written the executable
  1464.                   file TODDY.COM.  The settings will be the new defaults
  1465.                   the next time Toddy is installed.  Macro definitions
  1466.                   may be removed from TODDY.COM by undefining the macro
  1467.                   and rewriting the settings.  If you are running DOS
  1468.                   2.X, TODDY.COM must be in the current directory when
  1469.                   using this switch.  Usually, the /OW switch is a better
  1470.                   method for saving the current settings.
  1471.  
  1472.         /WU       Force Windows to use a single copy of Toddy for all DOS
  1473.                   windows.  Normally, Windows creates a separate copy of
  1474.                   Toddy for each DOS window.  The advantage of using a
  1475.                   single copy of Toddy is that new commands saved to the
  1476.                   command history, changes to macros, and other settings
  1477.                   will be preserved from DOS session to DOS session, and
  1478.                   also remain intact after you exit Windows.  DO NOT use
  1479.                   this switch if you open up more than one DOS window at
  1480.                   a time, because the two windows will interfere with
  1481.                   each other.
  1482.  
  1483.         /WP       Force Windows to use a separate copy of Toddy for each
  1484.                   DOS window.  Changes to Toddy in one DOS window will
  1485.                   not affect Toddy in another DOS window.  Also, any
  1486.                   changes you make to Toddy in a DOS window will will not
  1487.                   be preserved after you exit Windows.  This switch turns
  1488.                   off the /WU switch.  This switch turns off /WU and is
  1489.                   the default setting.
  1490.  
  1491.                                          Examples
  1492.                                          --------
  1493.  
  1494.         TODDY
  1495.  
  1496.           Install Toddy using the default switches.
  1497.  
  1498.         TODDY /hs10000 /ms100 /to000f
  1499.  
  1500.           Install Toddy with a 10000 byte command history, 100 byte macro
  1501.           area, and set the cursor scan lines to a big blinking blob
  1502.           whenever overwrite mode is in effect.
  1503.  
  1504.         TODDY /at1F /ac4F /ae1F /te2000
  1505.  
  1506.  
  1507.  
  1508.  
  1509.           Set the colors to a uniform bright white on blue with a red
  1510.           block cursor.  The blinking cursor is turned off for each
  1511.           input.
  1512.  
  1513.         TODDY /hs1000 /hm6 /ow
  1514.  
  1515.           Write the /HS1000 and /HM6 switches to TODDY.CFG so they don't
  1516.           need to be specified the next time Toddy is installed.
  1517.  
  1518.         TODDY /md'dir'dir $* /w' /md'del'move $1 c:\trashcan' /cl33
  1519.  
  1520.           Define two macros and set the literal character to an exclama-
  1521.           tion mark.  The first macro appends the /W parameter to all DIR
  1522.           commands.  The second macro makes the DEL command move files to
  1523.           be deleted to a directory called TRASHCAN, where they can be
  1524.           later retrieved if you change your mind about the deletion.
  1525.           With the definition of the literal character, !DEL performs a
  1526.           regular and permanent delete.  The DEL macro requires a MOVE
  1527.           utility, which isn't included with DOS prior to version 6, but
  1528.           is available on many BBS's and online services.
  1529.  
  1530.         TODDY /u
  1531.  
  1532.           Remove Toddy from memory.
  1533.  
  1534.  
  1535.                                   Version Changes
  1536.                                   ---------------
  1537.  
  1538.         Version 2.00
  1539.  
  1540.           First public release.
  1541.  
  1542.         Version 2.01
  1543.  
  1544.           Several command line switches renamed.
  1545.  
  1546.         Version 2.10
  1547.  
  1548.           Ctrl-Break implemented and mouse support removed to conserve
  1549.           memory.
  1550.  
  1551.         Version 2.11
  1552.  
  1553.           Search command made case-insensitive.
  1554.  
  1555.         Version 2.20
  1556.  
  1557.           Cursor switches expanded.
  1558.  
  1559.         Version 3.00
  1560.  
  1561.           Complete rewrite.  New features include chained commands and
  1562.           macros.  Other changes include: most command line switches
  1563.  
  1564.  
  1565.  
  1566.           renamed, switches are automatically passed to a resident Toddy
  1567.           (no /RS needed), default values changed, several editing keys
  1568.           changed, delimiters for move word left and right changed, and
  1569.           history search improved.
  1570.  
  1571.         Version 4.00
  1572.  
  1573.           Many new features added: macros and the command history may be
  1574.           saved and loaded from a file, control characters can be en-
  1575.           tered, Ctrl-Break cancels chained commands and macros, DOS
  1576.           editing keys supported, file name completion, and more.  Other
  1577.           changes include: several editing keys changed, alternate syntax
  1578.           for defining macros, switches must start with a slash (/),
  1579.           macro parameter syntax slightly changed.
  1580.  
  1581.         Version 5.00
  1582.  
  1583.           Macro interpreter totally rewritten: previous restrictions with
  1584.           regard to the $* parameter have been removed, parameters above
  1585.           $9 are now $10 to $99, new special parameters introduced ($t,
  1586.           $l, $g, etc), $n* parameter added, trailing arguments automati-
  1587.           cally appended to macro expansion, the asterisk in the $* and
  1588.           $n* parameters can be redefined.  New features added: quoted
  1589.           strings, command history window, comments in macro files,
  1590.           preload a command to the input buffer (/R switch), and the /FL,
  1591.           /FU, /HT, /HN switches.  Other changes include: down arrow key
  1592.           has new function (see /HT and /HN switches), macro definition
  1593.           syntax "macro=text" and "macro=" replace and undefine macro
  1594.           definitions, /Q affects banner without writing to file, new
  1595.           memory configuration option /B, and suppresses system prompt
  1596.           for phantom drives.
  1597.  
  1598.         Version 5.01
  1599.  
  1600.           Fixed a bug associated with the /TE /TI /TO /TX switches.
  1601.  
  1602.         Version 5.10
  1603.  
  1604.           Cursor is moved to the end of the line when loading commands
  1605.           from the command history, the cursor isn't hidden in the selec-
  1606.           tion window, and the allocation switch (/A) displays more
  1607.           information.
  1608.  
  1609.         Version 5.11
  1610.  
  1611.           Fixed "Error in switches ..." message when using /S switch.
  1612.  
  1613.         Version 6.00
  1614.  
  1615.           New features: can redefine keys with key macros, opposite
  1616.           direction command history search and file name matching, can
  1617.           expand macros within body of other macros, backslash added to
  1618.           directory names, better command history management.  New
  1619.           switches: /CB, /CE, /CV, /CW, /HD, /HI, /HK, /HP, /KC, /KD,
  1620.           /KE, /KF, /KL, /KR, /KS, /KT, /KU, /KW, /NB, /NC, /NS, /OR,
  1621.  
  1622.  
  1623.  
  1624.           /OW, /VL, /VN, /WU, /WP.  Changed switches: /FT to /NT, /FU to
  1625.           /NU, /FL to /NL; changed meaning of /HT and /HN.  Fixed bugs:
  1626.           DOS template commands, /R processing, delete current history
  1627.           line (^D).  Comment lines are no longer allowed in saved macro
  1628.           files.
  1629.  
  1630.                                       Notes
  1631.                                       -----
  1632.  
  1633.         Toddy performs the same function as the DOSKEY utility provided
  1634.         with DOS version 5 and up.  The two programs are somewhat macro
  1635.         and keystroke compatible, though the command line switches are
  1636.         totally different.  By and large, Toddy has a lot more features
  1637.         than DOSKEY but uses more memory.
  1638.  
  1639.         Toddy will work with 4DOS (and the version of 4DOS licensed to
  1640.         Symantec/Peter Norton Computing called NDOS), though the /L1
  1641.         parameter must be set using the SETDOS command.  When Toddy is
  1642.         installed under 4DOS, many of 4DOS' features are still available,
  1643.         including aliases and multiple commands on a single line.  Toddy
  1644.         is somewhat redundant when using 4DOS, since most of the features
  1645.         of Toddy are available through 4DOS.  If you use Toddy's /BS
  1646.         switch, the setting for 4DOS must be /BS255.
  1647.  
  1648.         You may have some trouble using redirected input with programs
  1649.         like DEBUG and EDLIN when Toddy is installed.  If Toddy receives
  1650.         a redirected text file, Toddy will interpret both the carriage
  1651.         return and linefeed, which are at the end of every text line, as
  1652.         the Enter key.  In effect, you'll get two Enters after every
  1653.         line.  To fix this problem, temporarily disable Toddy or use the
  1654.         /BS switch to limit when Toddy is active.  Redirected input is
  1655.         sometimes used to assemble small programs using the DEBUG pro-
  1656.         gram.
  1657.  
  1658.         The memory allocated by the /HS, /MS, and /NS switches is as-
  1659.         signed to a common pool called the heap.  Any space not used by
  1660.         macros (including key macros) is available for the command histo-
  1661.         ry.  If a file match command is used (F9 or F10), the oldest com-
  1662.         mand history entries may be deleted to make room, though the file
  1663.         matching commands will never use more than what it has been
  1664.         allocated.  You can display the current memory allocations with
  1665.         the /A switch.
  1666.  
  1667.         The DOS template commands (F1 to F6) use the most recent command
  1668.         line stored in the command history, so if you plan on using these
  1669.         keys, you should make sure that there is enough available heap
  1670.         space to hold at least one command line.
  1671.  
  1672.         Before Toddy is installed, all available memory is allocated to
  1673.         the memory pool.  If you run "TODDY /A" before installing Toddy,
  1674.         the total allocated memory will usually be larger than the sum of
  1675.         the first three numbers.  This is the total bytes available for
  1676.         the /B, /FS, /HS, /KS, /MS, /MN, /VL, and /VN switches.
  1677.  
  1678.         Each command of a chained command is displayed as it is executed.
  1679.  
  1680.  
  1681.  
  1682.         Only the final form of the command is displayed (that is, after
  1683.         all macros have been processed).  To see the see final form of
  1684.         the first command, precede the chained commands with the chain
  1685.         character.  For instance, if you defined the following macro:
  1686.  
  1687.           TODDY d=dir
  1688.  
  1689.         when you run the "d" macro, you will not see the DIR command,
  1690.         just the results of the DIR.  If you wish to see the actual DIR,
  1691.         define the macro as:
  1692.  
  1693.           TODDY d=$s$tdir
  1694.  
  1695.         You might have trouble using the DOS pipe and redirection com-
  1696.         mands with macros because the macro parameters $* and $n* will
  1697.         include such commands.  For instance, if you define the following
  1698.         macro:
  1699.  
  1700.           TODDY d=dir $* /w
  1701.  
  1702.         and then try run D and redirect the output with "d > file", the
  1703.         macro will expand to "dir > file /w", which probably isn't what
  1704.         you want.  With most programs, you can solve this problem by
  1705.         specifying the command line switches first, so define the macro
  1706.         as:
  1707.  
  1708.           TODDY d=dir /w $*
  1709.  
  1710.         You can use the parameter character (the dollar sign by default)
  1711.         in macro names, but if you call that macro from another macro,
  1712.         you must use two parameter characters ($$).  You can also use the
  1713.         chain character in macro names, but you must put the macro name
  1714.         in (removable) quotes to call it.  Macro names cannot contain
  1715.         spaces or removable quotes.  If you use a quote before or within
  1716.         the first field of a line, the quotes only affect the first field
  1717.         (i.e. the command), not the arguments.
  1718.  
  1719.         If you have saved macros to TODDY.COM (using the /W switch), use
  1720.         the /MC switch to install Toddy without those macro definitions.
  1721.         It will be necessary use the /MC switch to install Toddy with a
  1722.         macro and history size of zero if you have saved macros in this
  1723.         manner.  The same applies to key macros and the /KC switch.
  1724.  
  1725.         Maximum line length for all commands that read or write to a file
  1726.         (/HR, /HW, /MR, etc) is 512.  This limits the size of macros and
  1727.         key assignments.  Lines that are too long will generate a read
  1728.         error.
  1729.  
  1730.                              DISCLAIMER OF WARRANTY
  1731.                              ----------------------
  1732.  
  1733.         THIS SOFTWARE AND MANUAL ARE DISTRIBUTED "AS IS" AND WITHOUT
  1734.         WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
  1735.         WARRANTIES WHETHER EXPRESSED OR IMPLIED.  BECAUSE OF THE VARIOUS
  1736.         HARDWARE AND SOFTWARE ENVIRONMENTS INTO WHICH THIS PROGRAM MAY BE
  1737.  
  1738.  
  1739.  
  1740.         PUT, NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED.
  1741.  
  1742.         GOOD DATA PROCESSING PROCEDURE DICTATES THAT ANY PROGRAM BE
  1743.         THOROUGHLY TESTED WITH NON-CRITICAL DATA BEFORE RELYING ON IT.
  1744.         THE USER MUST ASSUME THE ENTIRE RISK OF USING THE PROGRAM.  ANY
  1745.         LIABILITY OF THE SELLER WILL BE LIMITED EXCLUSIVELY TO PRODUCT
  1746.         REPLACEMENT OR REFUND OF PURCHASE PRICE.