home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / mex / mex114.prn < prev    next >
Encoding:
Text File  |  1994-07-13  |  54.5 KB  |  1,453 lines

  1.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  2.  
  3.  
  4.  
  5.                                  HELP
  6.  
  7. The HELP command with no arguments prints out a list of available help
  8. subjects (as you've probably guessed by now, since you are indeed read-
  9. ing this).  The HELP.MEX file must, of course, be located in the drive
  10. and user areas as specified in your overlay configuration.
  11.  
  12. Help will print a list of available topics.  To see this list, do this:
  13.  
  14.                         HELP ?
  15.  
  16. To query the HELP database for any of the selected topics, do this:
  17.  
  18.                         HELP <topic-name>
  19.  
  20. for any topic-name displayed by "HELP ?".
  21.  
  22. In general, HELP frames explain syntax with the use of the '[' and ']'
  23. characters (which denote optional items) and the '<>' characters (which
  24. indicate a data-type, such as <filename> or <string>.
  25.  
  26. You may move freely among drives/user areas while the HELP file is opened;
  27. MEX will remember where to find it.
  28.  
  29. Once opened, the HELP file will remain open for the duration of the
  30. session, unless a LOG command is executed.
  31.  
  32.                                  WECHO
  33.  
  34. WECHO is a STAT value variable that affects the use of the SENDOUT com-
  35. mand.  WECHO is the time, in seconds, that SENDOUT will wait between
  36. characters during a reply from the remote, before considering the reply
  37. ended.  This should not be confused with the REPLY variable, which is
  38. the maximum amount of time to wait, after sending a string, before con-
  39. sidering that no reply is forthcoming.
  40.  
  41.                                  QUEUE
  42.  
  43. QUEUE is a STAT variable that enables or disables the MEX queued I/O
  44. functions.  The overhead associated with the queues may cause you to
  45. lose characters in terminal mode at speeds above about 4800 baud (using
  46. a 4 MHz CPU); if you commonly run higher-speed hardwired connections,
  47. you'll want to turn QUEUE off.
  48.  
  49. Although used for various purposes, the most significant use of queues
  50. within MEX is to catch 'overflow' characters from the remote after an
  51. X-OFF flow character is sent in terminal mode (when the ASCII capture
  52. buffer fills).  With QUEUE turned off, there is a possibiity of lost
  53. characters in capture files if the size of such files exceed available
  54. memory space.
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.    Documentation for MEX114, extracted from MEX.HLP.  Page 1 of 22.
  62.  
  63.  
  64.  
  65.  
  66.  
  67.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  68.  
  69.  
  70.                                 SODELAY
  71.  
  72. SODELAY is a STAT switch variable.  When ON, SENDOUT strings and keystrings
  73. sent from terminal mode are tied to the WCHAR and WLINE delay variables, al-
  74. lowing convenient entry of passwords, etc. from a READ file.  Note that, for
  75. SODELAY to have any effect, the WTECHO switch variable must be OFF (WTECHO
  76. takes precedence if both are active).
  77.  
  78.                                 CAPTURE
  79.  
  80. CAPTURE is a STAT switch variable that enables and disables recording of
  81. the save-in-memory terminal file.  It works similarly to the terminal mode
  82. <escape>-S and <escape>-U commands, but allows access from the command
  83. line (and hence from a READ file). This variable can only be changed if
  84. a terminal mode capture file is open (see the TERM command).
  85.  
  86.                                 PRECHO
  87.  
  88. PRECHO is a STAT switch variable that enables and disables the logging of
  89. incoming characters to the printer.  It is similar to the <escape>-P toggle
  90. command used in terminal mode.  Changing this variable is most useful when
  91. executing from a READ file.
  92.  
  93.                                  TERM
  94.  
  95. TERM is very similar to the 'T' single-character command ... it takes a file-
  96. name as an argument, and opens that file as an ASCII-capture file, but does
  97. not actually enter terminal mode.  This is most useful within a READ file.
  98.  
  99.                                  TERMA
  100.  
  101. TERMA does the same thing, but opens the file in APPEND mode (as if the
  102. single-character T had been entered with the A option).
  103.  
  104. Examples:       TERM WILLOW.SES         <== opens file, returns to cmd mode
  105.                 TERMA SOURCE.LOG        <== same, but opens file in appnd mode
  106.  
  107. For more information on terminal mode, do HELP TERM-MODE.  For more infor-
  108. mation on append mode, do HELP APPEND.
  109.  
  110.                                   ALT
  111.  
  112. The ALT command supports the ALTernate drive/user for READ files as well
  113. as .PHN and .KEY (phone libraries and keystring files), and, if the 'A'
  114. (append) secondary option is in effect, the terminal-modem capture file.
  115. ALT allows you to change the alternate drive/user; its syntax is:
  116.  
  117.                         ALT <du-spec>
  118.  
  119. Examples:
  120.                         ALT B3:
  121.                         ALT A5:
  122.  
  123. For more information on how alternate DU's are used, and how to set up the
  124. ALT search path,  see SEARCH.
  125.  
  126.  
  127.    Documentation for MEX114, extracted from MEX.HLP.  Page 2 of 22.
  128.  
  129.  
  130.  
  131.  
  132.  
  133.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  134.  
  135.  
  136.                                 SEARCH
  137.  
  138. SEARCH is a STAT variable that may take on the values 0, 1, 2 or 3.  SEARCH
  139. specifies a search path for READ files, phone libraries, keystring files, and
  140. (if the append secondary option, 'A' is specified) terminal-mode ASCII capture
  141. files.  These files normally are taken only from the currently logged DU; by
  142. modifying SEARCH, you can change the way MEX finds these files.
  143.  
  144. Two drive/user areas are possible: the currently logged area ("logged" D/U)
  145. and the Alternate DU (do HELP ALT for information on changing the alternate).
  146.  
  147. If SEARCH=0, then only the LOGGED DU is searched.
  148. If SEARCH=1, then only the ALT DU is searched.
  149. If SEARCH=2, then the LOGGED DU is searched; if the file is not found, then
  150.              the ALT DU is searched.
  151. If SEARCH=3, then the ALT DU is searched; if the file is not found, then the
  152.              LOGGED DU is searched.
  153.  
  154.                          HEX and DECIMAL modes
  155.  
  156. HEX and DECIMAL are STAT value variables; they are mutually exclusive (ie,
  157. turning one ON turns the other OFF).  These variables specify the default
  158. input radix of commands that take numeric arguments (e.g., SLEEP, STAT VAL
  159. <#>, the '#' spec in CALL commands, etc).  If HEX mode is ON, then these
  160. numbers are considered Hexadecimal; if DECIMAL mode is on (MEX is distributed
  161. with DECIMAL ON), then they are considered decimal values.
  162.  
  163. You can force a decimal number, regardless of the HEX or DECIMAL mode, by
  164. preceeding the number with a '$' character; similarly, the '#' character
  165. implies a decimal number.
  166.  
  167. HEX mode has a side effect: it turns on HEX record count reporting in file
  168. transfers.
  169.  
  170.                                  SPLIT
  171.  
  172. SPLIT is a STAT switch variable that affects the screen display of the phone
  173. library (done from the PHONE command or the CALL command).
  174.  
  175. This variable may be turned off to force a more compact display (two en-
  176. tries per line, instead of one), but to work properly, requires a terminal
  177. with an 84-character line width.
  178.  
  179. If SPLIT is disabled, any baud-rate codes associated with an entry will
  180. not be displayed.
  181.  
  182. MEX has a special feature that allows you to maintain 'log' files of your
  183. sessions; this is the 'A' secondary option (specified with the T, E or L
  184. primary commands when entering terminal mode IF a filename is specified).
  185.  
  186. When you specify the 'A' secondary option, MEX will search the logged area
  187. (and/or the ALT area: do HELP ALT and HELP SEARCH for more information on
  188. searching) for the file specified.  If found, MEX will scan to the end of
  189. the file, and append new data on to the end, rather than querying the user
  190. for an erase.
  191.  
  192.  
  193.    Documentation for MEX114, extracted from MEX.HLP.  Page 3 of 22.
  194.  
  195.  
  196.  
  197.  
  198.  
  199.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  200.  
  201.  
  202. If 'A' is not specified, MEX will limit its search to the currently logged
  203. DU, and, if the file is found, will ask you if it should erase the file.
  204.  
  205. In either case, if the file is NOT found, MEX will create a new file in
  206. the currently logged DU.
  207.  
  208.                             WCHAR and WLINE
  209.  
  210. WCHAR and WLINE: These are value variables that may be manipulated with the
  211. STAT command.  They specify delay times in simple file transmissions
  212. done within terminal mode (with the <ESC> T command).  When you trans-
  213. fer a file, MEX will ask you whether you want to use these delays.
  214.  
  215. WCHAR is the delay to use between characters.(0-9, in 10's of milliseconds)
  216. WLINE is the delay to use between lines      (0-9, in 100's of milliseconds)
  217.  
  218. WCHAR and WLINE delays are often needed for timesharing mainframes and
  219. BBS's written in BASIC, to allow the slower remote end to catch the entire
  220. file.
  221.  
  222.                                  READ
  223.  
  224. The READ command causes MEX to take command lines from a disk file. This
  225. can be handy for such things as controlling a set of file transfers (es-
  226. pecially when you can't be present for the entire session) and executing
  227. complicated login sequences automatically. READ, used with the EXTEND
  228. function (do "HELP EXTEND" for information on how to enter EXTEND mode)
  229. provides a means of extending MEX's command set.
  230.  
  231. The syntax for READ is:
  232.  
  233.         READ <filename> [<parm1>] [<parm2>] ...
  234.                             \          \
  235.                               \ ________\_____>> optional!
  236.  
  237. <parm1>, <parm2>, ... etc. are described in succeeding frames.
  238.  
  239. The READ file may contain any valid command EXCEPT another READ command.
  240. These commands may freely move among drives and user areas; MEX will re-
  241. member where the READ file is located.
  242.  
  243. Typically, READ files are created with a text editor, and may contain
  244. STAT commands to set MEX for a particular type of connection, DIAL commands
  245. to actually make the connection, and SENDOUT commands to log in at the
  246. destination.  It's possible for an entire session to take place under
  247. a READ command.
  248.  
  249. A READ file will terminate when the file ends, or when a CONTROL-C is
  250. seen at the console (aborting any command with CONTROL-C will abort the
  251. READ file).
  252.  
  253. It's important to note that, while you can use a READ file to enter the
  254. terminal mode, the READ file is not used while the terminal mode is active.
  255. When you exit terminal mode, the READ file starts again.
  256.  
  257.  
  258.  
  259.    Documentation for MEX114, extracted from MEX.HLP.  Page 4 of 22.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  266.  
  267.  
  268. Normally, READ commands echo on the screen when they execute. You
  269. can inhibit this, however, by manipulating the SILENT variable (do
  270. STAT SILENT ON to inhibit the command echo).
  271.  
  272.                         READ with PARAMETERS
  273.  
  274. READ parameters are very similar to CPM's SUBMIT parameters; they are called
  275. ACTUAL parameters. If they are present in the command line, they will be
  276. plugged into the FORMAL parameters in the READ file.  This substitution
  277. facility provides a powerful tool for generating multiple-purpose command
  278. files, as we'll see in the proceeding frames.
  279.  
  280. Formal parameters occur in the READ file, and take the form {n}, where n
  281. is the parameter number; these numbers correspond sequentially with the
  282. ACTUAL parameters entered on the command line.  The ACTUAL parameters in
  283. the command line are substituted for the FORMAL parameters in the READ file
  284. when the file is executed.  A special form of FORMAL parameter allows a
  285. default value to be used if an ACTUAL parameter is not specified on the
  286. command line; this form is {n:<text>} where n is the parameter number, and
  287. <text> is any arbitrary text to be used as the default.
  288.  
  289. If the default form of the formal parameter is not used, AND no actual
  290. parameter is specified in the command line, execution will continue, but
  291. the parameter will be blank.
  292.  
  293. Normally, the parameters in the READ command line are terminated by the
  294. space between parameters (or the end-of-line); spaces can be imbedded in
  295. the ACTUAL parameter by enclosing it in braces.
  296.  
  297.                      Example, READ with parameters
  298.  
  299. FILEGET.MEX contains the following lines:
  300.  
  301. SENDOUT XMODEM S{2} {1:SENACA.DQR}
  302. R{2} {1:SENECA.DQR}
  303.  
  304. ( {2} and {1:SENACA.DQR} are FORMAL parameters). This file can be used in
  305. several ways:
  306.         READ FILEGET            will simply transfer SENACA.DQR to your system
  307.         READ FILEGET MEX.UPD    will transfer MEX.UPD to your system
  308.         READ FILEGET *.NEW B    will transfer all NEW files in batch mode
  309.         READ FILEGET USQ.DOC VT will transfer FILEGET, View it, goto Term mode
  310. The following line illustrates how to expand a parameter, using the above file:
  311.         READ FILEGET {*.BOO NEWSTUFF.DOC} BX [use if MEX is running on remote]
  312. (Transfers all .BOO files and NEWSTUFF.DOC) in batch mode, then disconnects)
  313.  
  314. If you turn the command extender on (STAT EXTEND ON), the READ in the above
  315. lines can be omitted, making the READ file look like a built-in command. This
  316. affects single-character commands somewhat: the disk is searched before the
  317. the command is checked for a single; you can avoid this by prefixing single-
  318. character command lines with a '*'  (eg, *RQ FILE.FOO).
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.    Documentation for MEX114, extracted from MEX.HLP.  Page 5 of 22.
  326.  
  327.  
  328.  
  329.  
  330.  
  331.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  332.  
  333.  
  334.                                 EXTEND
  335.  
  336. EXTEND is a STAT switch variable.  When turned on, it modifies the way
  337. MEX's command decoding works: if a command is not found in MEX's command
  338. table, MEX will pass the entire command line on to READ, causing the
  339. command to look like a READ command (without READ being present on the
  340. command line).  For more information, see "READ".
  341.  
  342.                                  DIAL
  343.  
  344. The DIAL command performs the same task as the CALL command, except that
  345. after calling, DIAL returns to command mode (CALL goes to terminal mode).
  346.  
  347. The syntax for DIAL is exactly the same as the syntax for CALL (do "HELP
  348. CALL" for more information on how to use both DIAL and CALL).
  349.  
  350. DIAL is intended to be used in READ files, where it is desirable for the
  351. READ file to retain control after calling a number (READ files have no
  352. effect in terminal mode; thus using CALL in a READ file would pause ex-
  353. ecution of the read file when the distant end is reached).
  354.  
  355.                                INITFILE
  356.  
  357. INITFILE is a STAT switch variable.  It determines whether or not MEX
  358. will look for the start-up file INI.MEX when it is first started.
  359.  
  360. INITFILE is intended to be used prior to running CLONE, to prevent the
  361. cloned MEX from looking for INI.MEX.  For more information about the
  362. CLONE command, see "CLONE".
  363.  
  364.                                  ALERT
  365.  
  366. ALERT is a STAT value variable; it determines the number of times the
  367. console bell will ring when a remote computer is reached with the CALL
  368. command.  ALERT works only on calls that have taken more than one dial-
  369. ing attempt to reach.
  370.  
  371. ALERT is handy for dialing with the repeat option (do "HELP CALL" for
  372. more information about the repeat option): you can enter a number (or
  373. group of numbers) to be dialed; with ALERT set non-zero, you'll have
  374. an audible signal that a call has been completed.
  375.  
  376.                                  PHONE
  377.  
  378. The PHONE command may be used to query the phone number library, as well as
  379. for adding and deleting numbers.  To add a number, use this form:
  380.  
  381.                 PHONE <id>=<number> [<baud-rate>]
  382.  
  383. Where ID is a string (up to 8 characters) that you want to use to call out
  384. the number and <number> is the telephone number.  If <id> already exists,
  385. it will be replaced.  <Baud-rate> is an optional rate to be associated with
  386. the number, used by the CALL command.  To remove a number, do
  387.  
  388.                 PHONE <ID>=
  389.  
  390.  
  391.    Documentation for MEX114, extracted from MEX.HLP.  Page 6 of 22.
  392.  
  393.  
  394.  
  395.  
  396.  
  397.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  398.  
  399.  
  400. To see the entire library, do
  401.  
  402.                 PHONE
  403.  
  404. To see a single entry, do
  405.  
  406.                 PHONE <ID>
  407.  
  408.                                  STAT
  409.  
  410. The STAT command lets you examine certain system variables, and change
  411. certain others.  In general, the syntax is as follows:
  412.  
  413.         STAT <KEYWORD>              <<== to examine a variable
  414.         STAT <KEYWORD> <NEW-VALUE>  <<== to change a variable
  415.  
  416. The NEW-VALUE will depend on the context of the keyword in question. For
  417. example, most of the switch-type variables are either ON or OFF, hence,
  418.  
  419.         STAT BAKFIL                 <<== prints out ON or OFF
  420.         STAT BAKFIL ON              <<== turns on BAKFIL
  421.         STAT BAKFIL OFF             <<== turns off BAKFIL
  422.  
  423. The value-type variables, on the other hand, will print the number or
  424. text associated with that variable.  Setting the value requires the entry
  425. in units associated with that value.  For example,
  426.  
  427.  STAT REPLY 5               <== sets 5 seconds as SENDOUT reply time
  428.  STAT WCHAR 4               <== set 40 ms as transmit-character delay tim
  429.                                 during a terminal-mode file send
  430.  
  431. Some variables are read-only, most notably STAT BUFFER (which prints
  432. out the save-buffer and printer-buffer statistics).
  433.  
  434. To obtain a list of all of the options that can be viewed or changed with
  435. the STAT command, do
  436.  
  437.         STAT ?
  438.  
  439. You'll note that most of the keywords you'll see printed have their
  440. own HELP section.
  441.  
  442.                                 SENDOUT
  443.  
  444. SENDOUT allows you to send an arbitrary string out to the modem [see
  445. STRINGS].  This is most useful in indirect command file [see READ],
  446. but can often be useful in normal interactive mode.
  447.  
  448. The syntax for SENDOUT is
  449.  
  450.                 SENDOUT <string>
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.    Documentation for MEX114, extracted from MEX.HLP.  Page 7 of 22.
  458.  
  459.  
  460.  
  461.  
  462.  
  463.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  464.  
  465.  
  466. Before the specified string is transmitted, a PREFIX string, if any,
  467. is transmitted, followed by the string specified to SENDOUT, and
  468. terminated by a SUFFIX string  (if any; the default suffix string
  469. is a return-code, normally terminating the line to the remote). After
  470. transmitting the string, MEX will wait for a reply from the remote, up
  471. to a pre-set number of seconds; any reply will printed on your screen.
  472.  
  473. Following are settings and variables which affect the SENDOUT command:
  474.  
  475. SUFFIX: \  Both of these are described in the previous frame, and are
  476. PREFIX: /  further explained in their own information sections.
  477.  
  478. WTECHO: Manipulated by the STAT command, this switch-variable determines
  479.         whether or not SENDOUT validates its transmission by waiting for
  480.         characters to be echoed from the remote.  If set to ON, then
  481.         SENDOUT checks each printing character it transmits with the
  482.         character as echoed by the remote.  If a mismatch occurs, SENDOUT
  483.         marks an error, sends a CANCEL character, and awaits a TRIGGER
  484.         character from the remote.  It then begins again, and repeats
  485.         this cycle until either the transmission occurs without error,
  486.         or the error count is exceeded (which aborts SENDOUT).
  487.  
  488.         If you use SENDOUT with WTECHO off, you'll also likely want to
  489.         set TRIGGER to null (STAT TRIGGER ""), to avoid trigger-wait.
  490.  
  491. More factors affecting SENDOUT:
  492.  
  493. RETRY   Manipulated by the STAT command, this value-variable specifies
  494.         the error-retry count for SENDOUT before aborting.
  495.  
  496. CANCHR: Manipulated by the STAT command, this string-variable (single
  497.         character) specifies the character to be transmitted to the
  498.         remote to cancel the transmitted line after an error.
  499.  
  500. TRIGGER:Manipulated by the STAT command, this string-variable (single
  501.         character) is the character the SENDOUT command waits for after
  502.         an error-cancel, before proceeding with the retry. If the other
  503.         end doesn't echo, set TRIGGER to 0 (and WTECHO to OFF), and MEX
  504.         will simply send its arguments and not worry about validating
  505.         the echoed string (this is the technique you should use to send
  506.         Smartmodem command strings, for example).
  507.  
  508.                                  REPLY
  509.  
  510. REPLY is a STAT keyword, and specifies the amount of time (in seconds)
  511. that the SENDOUT command will wait, after sending a string, for the
  512. remote end to send a reply.
  513.  
  514. To query the REPLY constant, do: STAT REPLY
  515.  
  516. To set the REPLY time, do:       STAT REPLY <value>
  517.  
  518. where <value> is the number of seconds to wait, between 0 and 255.
  519.  
  520.  
  521.  
  522.  
  523.    Documentation for MEX114, extracted from MEX.HLP.  Page 8 of 22.
  524.  
  525.  
  526.  
  527.  
  528.  
  529.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  530.  
  531.  
  532.                                  RETRY
  533.  
  534. RETRY is a STAT keyword, and specifies the number of times the SENDOUT
  535. will attempt to send a string before aborting.  Note that if the Wait-For-
  536. Echo switch (WTECHO) is off, RETRY will have no effect, since no error
  537. can occur.
  538. To query the RETRY constant, do: STAT RETRY
  539.  
  540. To set the RETRY constant, do:   STAT RETRY <value>
  541.  
  542. where <value> is the number of retries, between 1 and 255.
  543.  
  544.                         MISCELLANEOUS COMMANDS
  545.  
  546. BYE, SYSTEM, EXIT  and CPM are keywords used to exit MEX and return
  547. to the operating system.  Any open terminal file is closed before exiting.
  548.  
  549. DEL is used to close and erase an open terminal file.
  550.  
  551. DSC disconnects the modem (may not be implemented in all overlays).
  552.  
  553. WRT is used to close and save an open terminal file.
  554.  
  555. SET is a command defined entirely by the overlay; if your overlay doesn't
  556. implement SET, MEX will print an error message when SET is invoked.
  557.  
  558. SSET is a similar command, intended for the Smartmodem overlays.
  559.  
  560. BELL <n> rings the console bell <n> times (regardless of the BELL switch).
  561.  
  562. CLS clears the screen (if supported by the overlay)
  563.  
  564.                                  SLEEP
  565.  
  566. SLEEP is used to invoke a delay (handy sometimes in READ files).
  567. Syntax is:
  568.  
  569.                         SLEEP n
  570.  
  571. where n is the number of seconds to wait (a ^C from the console
  572. will abort the SLEEP command, as well as any active READ file).
  573.  
  574. Sleep, used with the STAT CLOCK function, can be used to "tweak" the
  575. timing constants in MEX (by timing the actual SLEEP period, and ad-
  576. justing the CLOCK value until the SLEEP argument agrees with the actual
  577. measured time).  This is especially useful with multi-tasking operating
  578. systems, such as MP/M and TurboDOS, where background processing wreaks
  579. havoc with the internal MEX timing constants.
  580.  
  581.                                 WTECHO
  582.  
  583. WTECHO is a STAT keyword, and determines whether or not keystrings
  584. and SENDOUT command lines transmitted to the remote are validated by
  585. comparison with their echoed characters.
  586.  
  587.  
  588.  
  589.    Documentation for MEX114, extracted from MEX.HLP.  Page 9 of 22.
  590.  
  591.  
  592.  
  593.  
  594.  
  595.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  596.  
  597.  
  598. When WTECHO is ON, all printing characters transmitted to the remote
  599. must echo correctly back from the host; this effectively halves the
  600. transmission rate, but provides error correction feedback for the SENDOUT
  601. command, allowing it to cancel a line and re-try.
  602.  
  603. If you're sending command strings out to a line that doesn't echo the
  604. characters, you'll want to set WTECHO off.  Additionally, if you're using
  605. the SENDOUT facility, you'll need to remove the trigger string (you can
  606. do this with STAT TRIGGER "" , which effectively removes the trigger
  607. character.
  608.  
  609.                                 TRIGGER
  610.  
  611. TRIGGER is a STAT keyword, and specifies the character the SENDOUT command
  612. will look for before sending out its argument.  To disable the trigger-wait
  613. function altogether, do STAT TRIGGER "".
  614.  
  615.                                 CANCEL
  616.  
  617. CANCEL is a STAT keyword, and specifies the character the SENDOUT command
  618. will send to the remote to cancel the line after an error.
  619.  
  620.                                   SEP
  621.  
  622. SEP is a STAT keyword, and allows you to change the command-line
  623.     separator character.
  624.  
  625.                                   ESC
  626.  
  627. ESC is also a STAT keyword, and specifies your terminal-mode escape
  628.     character, used to activate terminal-mode functions (such as
  629.     capture and printer buffer on/off, etc). The argument is a single-
  630.     character string.  Example:
  631.  
  632.                         STAT ESC "^I"
  633.  
  634.      changes your escape character to the TAB key.
  635.  
  636.                                  CALL
  637.  
  638. Use the CALL command to dial numbers either from the library, or from
  639. the keyboard. If you specify more than one number on the command line,
  640. CALL will try each until one answers with a carrier tone.  For example
  641.  
  642.         CALL 16165559033 SENACA
  643.  
  644. will dial the first number; if busy, CALL will try the second.  The
  645. special number '#' will cause the entire command line to be repeated
  646. if none of the dialed numbers responds with a carrier:
  647.  
  648.         CAL WESTWOOD 1-616-555-2040 TCBBS #
  649.  
  650. will try all three numbers repeatedly until one answers.
  651.  
  652.  
  653.  
  654.  
  655.    Documentation for MEX114, extracted from MEX.HLP.  Page 10 of 22.
  656.  
  657.  
  658.  
  659.  
  660.  
  661.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  662.  
  663.  
  664. You may optionally place a limit on the number of retries by including
  665. a decimal number after the '#':
  666.  
  667.         CAL 555-1212 #48
  668.  
  669. Note that a ^C will abort dialing at any time.
  670.  
  671. Note that phone-library numbers may specify an optional baud rate (see
  672. PHONE for information on how to specify a baud rate for a number).
  673. If a baud-rate is present, CALL will change the baud rate before dialing
  674. the number.
  675.  
  676. Note that, for this feature to work, your hardware must be capable of
  677. changing the rate AND your overlay must implement the NEWBD vector.  Most
  678. MEX overlays (overlays whose names start with "MXO-") allow this, if the
  679. hardware is capable of baud-rate change; most MDM overlays do NOT.
  680.  
  681.                                  CLONE
  682.  
  683. The CLONE command allows you to save a new copy of MEX, with the current
  684. options intact (including any defined keystrings and phone numbers). The
  685. syntax is:
  686.                 CLONE <filename>
  687.  
  688.                                  COLD
  689.  
  690. The COLD command re-starts MEX and erases any defined keystrings along
  691. with the phone library.  This is the only way to erase the entire phone
  692. library with one command.  The COLD command also allows you to remove the
  693. CIS protocol module (for those who don't need it): do this:
  694.  
  695.                 STAT CIS OFF
  696.                 COLD
  697.                 CLONE <filename>
  698.  
  699. Note that this removes the CIS module altogether (you can't get it back
  700. with the STAT CIS command).  This frees up roughly 1K of memory.
  701.  
  702.                                   ERA
  703.  
  704. The ERA command erases files.  The syntax is as follows:
  705.  
  706.                 ERA <filename> [V]
  707.  
  708. The filename may be ambiguous (e.g., *.ASM, BOOT?.BAK).  ERA always dis-
  709. plays a list of the files that are being erased.  If you specify the
  710. optional 'V' after the filename, ERA will ask for verification before
  711. actually erasing the files (after displaying the names).
  712.  
  713.                                   DIR
  714.  
  715. The DIR command works similarly to the CP/M DIR command, and displays
  716. the disk directory on the screen. DIR takes advantage of the DU spec-
  717. ification, thus "DIR B7:" will display all of the files in user 7 on
  718. drive B.  System files will be excluded if the STAT variable 'EXCLUDE'
  719.  
  720.  
  721.    Documentation for MEX114, extracted from MEX.HLP.  Page 11 of 22.
  722.  
  723.  
  724.  
  725.  
  726.  
  727.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  728.  
  729.  
  730. is set to ON.  If EXCLUDE is OFF, all files will be displayed.
  731.  
  732. More examples:
  733.  
  734.         DIR C3:*.?Q?
  735.         DIR LOGIN.MEX
  736.         DIR 3:
  737.                              LOAD and SAVE
  738.  
  739. LOAD and SAVE are used to load and save phone number and keystring files.
  740. Both commands take a filename argument.  Examples:
  741.  
  742.         LOAD A5:CBBSPHON.PHN            <<== loads a phone # file
  743.         LOAD ARPA.KEY                   <<== loads a keystring file
  744.         SAVE C:NEWPHONE.PHN             <<== saves phone # file
  745.         SAVE 9:COMPUSRV.KEY             <<== saves keystring file
  746.  
  747. Note that the filetype determines what type of file is being saved (.PHN
  748. for phone number files, .KEY for keystring files).  Any other filetype
  749. will generate an argument error.
  750.  
  751.                              About Strings
  752.  
  753. Several MEX command take string arguments.  These strings must be sur-
  754. rounded by quotatation marks, and may contain imbedded control char-
  755. acters (with the singular exception of binary zero, which will generate
  756. an argument error).  The caret ("^") is used to prefix a control char-
  757. acter.
  758.  
  759. Thus, you can specify multi-line strings within one string specification.
  760. Examples (note that that the control-character ^M is the carriage-return
  761. code, and ^J is a linefeed):
  762.  
  763.         KEY A="BILL USER;J^MWHATSNEW^MB:^MWHATSNEW^M"
  764.         SENDOUT "SD B:*.ASM^MCRCK *.BIN^M"
  765.  
  766. Note that the command-separator character may be included freely within
  767. a string; it separates your command strings outside of quotation marks
  768. only.
  769.  
  770.                                   ID
  771.  
  772. The ID command allows you to configure the MEX ID string (which is
  773. printed in the prompt, and in error messages, if the STAT ERRID switch
  774. is set to ON).  This is useful if you're communicating with another
  775. computer running MEX; if each computer has a different ID string,
  776. you're never in doubt as to which one you're typing commands to, or
  777. which one printed an error message.
  778.  
  779. The syntax for the ID command is
  780.  
  781.                 ID <string>               (see "STRINGS")
  782.  
  783.  
  784.  
  785.  
  786.  
  787.    Documentation for MEX114, extracted from MEX.HLP.  Page 12 of 22.
  788.  
  789.  
  790.  
  791.  
  792.  
  793.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  794.  
  795.  
  796. The string may be a multi-line string; it's length in the standard
  797. distributed MEX may not exceed 28 characters.  This length may be different
  798. if your system overlay replaces the MEX defaults (in fact, the overlay
  799. may disable this command altogether; if the "INVALID COMMAND" message
  800. appears when you attempt to use the ID command, then this is probably
  801. the case).
  802.  
  803.                            CRC and CHECKSUM
  804.  
  805. CRC and CHECKSUM are STAT switches.  The two are mutually exclusive (that
  806. is, turning one on turns the other off) and set the preferred type of error
  807. checking in Christensen file transfers.
  808.  
  809. CHECKSUM is a simple sum of the outgoing record; CRC uses a more sophisticated
  810. technique employing polynomial arithmetic, and is thus a better method (more
  811. errors are detected, thus, there is less chance of an incorrect record being
  812. received as if it were valid).
  813.  
  814. The original MODEM2 protocol employed only CHECKSUM detection; however, in
  815. the past few years, most versions of Christensen exchange programs have been
  816. rewritten to accept the CRC technique as well.  MEX will adapt to transmitting
  817. programs using either type of validation.
  818.  
  819. If MEX is the transmitter, it will switch modes after several failed attempts
  820. to transmit a file, thus allowing full compatibility with older modem programs.
  821.  
  822.                                   CIS
  823.  
  824. CIS is a STAT switch: when ON, then Compuserve protcol file transfers
  825. are allowed while in terminal mode.  If OFF, then the Compuserve transfer
  826. sequences from the remote end are ignored altogether (although they are
  827. printed on the screen as "normal" terminal-mode characters).
  828.  
  829. CIS transfers are always done in terminal mode; there is no command to
  830. send or receive a file using CIS protocol, since the remote Compuserve
  831. end must initiate the transfer.
  832.  
  833. Note that if you use the COLD command to restart MEX while the CIS switch
  834. is set to OFF, then the Compuserve file transfer module will be removed
  835. altogether from the running copy of MEX.  If you subsequently use the CLONE
  836. command to create a new executable MEX.COM, the additional space formerly
  837. used by the CIS module (about 1000 bytes) will be available instead for
  838. your buffers.  You will not be able to use STAT to turn the CIS switch back
  839. on (since there is no longer a CIS module in the system).  This feature is
  840. intended for those users who do not need the ability to do Compuserve-
  841. protocol transfers, and would rather not waste space on a feature they
  842. do not need.
  843.  
  844.                                 FILTER
  845.  
  846. FILTER is a STAT switch variable; when ON, then abnormal control characters
  847. are ignored when in terminal mode (with the exception of carriage-return,
  848. linefeed, backspace and tab).  If OFF, then all characters from the remote
  849. will be displayed on the screen (and included in the ASCII-capture file,
  850. if active).
  851.  
  852.  
  853.    Documentation for MEX114, extracted from MEX.HLP.  Page 13 of 22.
  854.  
  855.  
  856.  
  857.  
  858.  
  859.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  860.  
  861.  
  862. FILTER ON is useful if you're working with a noisy connection, and random
  863. garbage characters on the line are erasing your screen, etc.
  864.  
  865. If you're using a video-oriented text editor at the remote, you'll want to
  866. be sure FILTER is set to OFF, in order to allow the video-control characters
  867. to be accepted by MEX.
  868.  
  869. Note that the CP/M end-of-file mark is specifically excluded from ASCII-
  870. capture files regardless of the setting of FILTER (although FILTER ON
  871. allows this character to go to the screen).
  872.  
  873.                      Miscellaneous STAT arguments
  874.  
  875. BAKFILE: Switch: when ON, new files overwriting old files of the same name
  876.          are renamed to type BAK.  If off, such files are erased.
  877. PAGE:    Value: sets the length of the screen page (0 stops pagination)
  878. CHAR:    Lists all of the STAT variables that are CHARACTERS
  879. SWITCH:  Lists all of the STAT variables that are SWITCHES
  880. VAL:     Lists all of the STAT variables that are VALUES
  881. BELL:    Switch: enables or disables the console BELL
  882. BUFFER:  Prints out status information on the ASCII-save buffer.
  883. RUB:     Switch: If ON, converts local backspace key to RUB
  884. TAB:     Switch: enables or disables the MEX tab expander
  885. LIST:    Switch: enables or disables the LIST device
  886. LF:      Switch: if ON, linefeed append to carriage rtn in T-mode file send
  887. EXTEND:  sets command-extend mode (command names not defined in MEX are passed
  888.          to the READ command, which will search for a file of the same name).
  889. SILENT:  inhibits command-echo in READ files.
  890.  
  891.                                 EXCLUDE
  892.  
  893. EXCLUDE is a STAT switch variable; it modifies the action of commands that
  894. take multiple-filename arguments (such as DIR and the batch-transmit SB).
  895.  
  896. If EXCLUDE is ON, then SYS files are skipped over by these commands.
  897.  
  898. If EXCLUDE is OFF, then SYS files are included.
  899.  
  900. Thus, you can exclude SYS files from a batchfile transmission by STATting
  901. the EXCLUDE switch ON.  These files will also be exclude from DIR listings
  902. while EXCLUDE is ON.
  903.  
  904.                                  DEBUG
  905.  
  906. DEBUG is a STAT switch that affects the Terminal mode in MEX.  If DEBUG
  907. is ON, then characters received in Terminal mode are displayed in a form
  908. similar to CP/M's DDT dump (D) command: hex values on the left side of
  909. the screen and the ASCII block (as the output progresses) on the right.
  910.  
  911. You'll note that the ASCII right-side display is "buffered" until 16
  912. characters have been received.  After the 16th, the ASCII right-side
  913. is printed.  Therefore, if the remote's output pauses, you'll see only
  914. the hex values until the remote sends more output.  Also, exiting Terminal
  915. mode will display any buffered ASCII.
  916.  
  917.  
  918.  
  919.    Documentation for MEX114, extracted from MEX.HLP.  Page 14 of 22.
  920.  
  921.  
  922.  
  923.  
  924.  
  925.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  926.  
  927.  
  928. DEBUG is useful whenever it's necessary to know exactly what the remote
  929. is sending (for example, if you're connected to a time-share network, and
  930. can't transfer files, a DEBUG session can prove illuminating in determining
  931. just what is happening).
  932.  
  933. In DEBUG mode,  the FILTER flag is ignored,  allowing all characters to reach
  934. the screen.  Additionally, the CIS protocol is disabled while DEBUG is ON.
  935.  
  936.                                  ERRID
  937.  
  938. ERRID is a STAT switch that enables and disables the printing of the MEX
  939. ID string in error messages.
  940.  
  941. The ID string is useful in applications where you're communicating with
  942. a remote computer running MEX (if each end has a different ID code, there
  943. is no problem confusing error messages), but if you typically use MEX
  944. only with RCPM systems or timesharing systems that don't run MEX, you'll
  945. likely want to turn off the ERRID switch, and shorten the error messages.
  946.  
  947.                                  RTIME
  948.  
  949. RTIME is a STAT value variable, and affects Christensen-protocol file
  950. transfers.
  951.  
  952. RTIME is the amount of time (in seconds) that MEX will wait for a char-
  953. acter from the remote end before declaring a timeout, and initiating
  954. a record-retransmission sequence.
  955.  
  956. RTIME is set for one second in the standard distribution MEX; this is
  957. more than adequate for RCPM work, and MEX-to-MEX file transfers where
  958. each end is running under a single user operating system.  But when
  959. working with a mainframe-type connection (and sometimes when a remote
  960. MEX is running under MP/M), especially when a packet-switched network
  961. is part of the connection, character delays can easily exceed one second.
  962. In these environments, you'll want to set RTIME to a higher value (16
  963. seconds is recommended; the maximum is 255).
  964.  
  965.                                   LOG
  966.  
  967. The LOG command allows you to reset the drive (for switching disks) and,
  968. optionally, simultaneously change drive and/or user area. The command
  969. syntax is:
  970.  
  971.                 LOG <DU-SPEC>
  972.  
  973. where DU-SPEC is either or both of the new drive to log into and the new
  974. user area.  An optional colon may follow the DU-SPEC.  Examples:
  975.  
  976.                 LOG B7          <<= reset, log in drive B user 7
  977.                 LOG 7:          <<= reset, log user 7 current drive
  978.                 LOG B:          <<= reset, log drive B current user
  979.                 LOG             <<= reset, retain current user/drive
  980.  
  981. If either a terminal file or a READ file is open, the disk-reset will be
  982. denied (although any new drive/user will be logged) and a message printed.
  983.  
  984.  
  985.    Documentation for MEX114, extracted from MEX.HLP.  Page 15 of 22.
  986.  
  987.  
  988.  
  989.  
  990.  
  991.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  992.  
  993.  
  994. If you want to change drive and/or user without a disk reset, you can do so
  995. without the LOG command: just enter the DU spec at the MEX command prompt (in
  996. this case, the terminating colon is required).
  997.  
  998.                                   KEY
  999.  
  1000. The KEY command is used to manipulate the keystrings that are available in
  1001. terminal mode.  There are several forms of the command:
  1002.  
  1003.         KEY                             <<= prints out all of the keystrings
  1004.         KEY <keyname>=[<string>]        <<= defines a new keystring
  1005.  
  1006. Keyname is any valid ASCII character, except for the set defined as the
  1007. terminal mode escape-sequence commands.
  1008.  
  1009. In the second form, above, if <string> is omitted, then the specified key-
  1010. string is erased.
  1011.  
  1012. Examples:
  1013.  
  1014.         KEY %="ATDT 14145559932"        <<= sets up the '%' key
  1015.         KEY Q=                          <<= erases the Q keystring
  1016.  
  1017. Note that KEY names that duplicate terminal-mode commands will be rejected
  1018. by the KEY command, and an error message will be printed.
  1019.  
  1020.                                  XLINE
  1021.  
  1022. XLINE is a STAT switch that affects terminal-mode file transfers.  If
  1023. XLINE is set to ON, then the file will be transmitted, one line at a
  1024. time; each succeeding line will not be transmitted until an X-ON character
  1025. is received from the remote.
  1026.  
  1027. XLINE is used with some timeshare and network computers, almost never
  1028. with RCPM and BBS systems.
  1029.  
  1030.                                 GLOBAL
  1031.  
  1032. The GLOBAL command allows you to set the secondary options for the single-
  1033. character commands.  Any options set this way will then be active for the
  1034. single-character commands whether or not they are specified.  For example,
  1035. if you prefer to go directly to terminal mode after a file transfer, do:
  1036.  
  1037.                 GLOBAL T
  1038.  
  1039. You can also set the VIEW mode for CIS transfers by doing
  1040.  
  1041.                 GLOBAL V
  1042.  
  1043. (note that this is the only way to "view" a CIS file transfer.
  1044.  
  1045. For more information about secondary options, see "SECOND".
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.    Documentation for MEX114, extracted from MEX.HLP.  Page 16 of 22.
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1058.  
  1059.  
  1060.                            SECONDARY options
  1061.  
  1062. The SECONDARY options are used only after the single-character commands (for
  1063. more information on single-character commands, do "HELP SINGLE"), and modify
  1064. the way the single-character commands work.  Following is a list of the sec-
  1065. ondary command options:
  1066.                         COMMANDS
  1067. OPT       NAME          USED WITH       ACTION
  1068. ---     --------        ---------       ------
  1069. A       Append          E,L,T           Append to a terminal-mode file
  1070. B       Batch           R and S         Sets BATCH mode file transfers
  1071. D       Disconnect      R and S         Disconnects after a file transfer
  1072. E       Echo            R and S         Enter term-mode w/echo after a transfer
  1073. L       Local           T,E             Local-character echo
  1074. Q       Quiet           R and S         Sets "quiet mode" for file transfers
  1075. R       Recv-view       R and S         Shows received-characters only
  1076. S       Send-view       R and S         Shows transmitted characters only
  1077. T       Terminal-mode   R and S         Enter terminal mode after file xfer
  1078. V       View            R and S         Views the file transfer in ASCII
  1079. X       Exit            R and S         Disconnect and exit after transfer
  1080.  
  1081. Note that these options are also effective in CIS transfers, if set with the
  1082. GLOBAL command (see "GLOBAL").
  1083.  
  1084. Examples of secondary options:
  1085.  
  1086. Primary --+
  1087. Command   |+---->secondary commands
  1088.           ||||
  1089.           |\ /
  1090. [MEX] A0>>ST   MYFILE.FOO       <<== send MYFILE.FOO, go into Term. mode after
  1091. [MEX] B9>>RVT  CRACKER.JAK      <<== receive file with view, enter Term mode
  1092. [MEX] A3>>RQX  MONKEY.SHN       <<== recv file quietly, disconnect/exit after
  1093. [MEX] A0>>RBT                   <<== recv batch files, Terminal mode after
  1094. [MEX] A0>>T    DISKFILE.SAV     <<== enter term. mode, allow save to disk file
  1095.                                 (note that the actual copy to the file must be
  1096.                                 activated with ESC-S while in terminal mode)
  1097. [MEX] B3>>TA   DISKFILE.SAV     <<== Enter term. mode, append to DISKFILE.SAV
  1098. [MEX] A0>>E    DISKFILE.SAV     <<== same as previous, but with echo mode
  1099. [MEX] A0>>S    HELP.MEX         <<== send file, no options (unless GLOBAL)
  1100. [MEX] A0>>R    MXO-SM10.ASM     <<== receive file, no options (unless GLOBAL)
  1101.  
  1102. The most commonly used MEX commands are implemented as single character com-
  1103. mands, for ease of use.  These are:
  1104.  
  1105. S: Send a file or group of files using Christensen protocol
  1106. R: Receive a file or group of files using Christensen protocol
  1107. T: Enter terminal mode (may specify an optional ASCII-save file argument)
  1108. E: Enter terminal mode with echo (also takes optional filename argument)
  1109. L: Enter terminal mode with local-echo only (filename ok here too).
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.    Documentation for MEX114, extracted from MEX.HLP.  Page 17 of 22.
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1124.  
  1125.  
  1126. T, E, and L are all variations of terminal mode: T sends keyboard characters
  1127. to the remote and prints characters received from the remote on the console.
  1128. E mode echoes received characters back to the remote ("half duplex" mode), and
  1129. L echoes keyboard characters on the console before they go out to the remote
  1130. ("half duplex" in the other direction).
  1131.  
  1132. Note that certain commands may be modified with secondary options (do
  1133. "HELP SECOND" for more information on secondary options, and examples of
  1134. single-character commands with and without secondary options.
  1135.  
  1136.                              TERMINAL MODE
  1137.  
  1138. MEX terminal mode is entered with any of the single-character commands T, L,
  1139. or E (for more information of the E and L variations, do "HELP SINGLE").
  1140.  
  1141. While in terminal mode, you are communicating as a console with the remote
  1142. end as a console; your keyboard characters are transmitted to the remote, and
  1143. the remote characters are displayed on your screen.
  1144.  
  1145. There are several functions that are available to you from terminal mode,
  1146. all of which are invoked by typing the escape-character (do "STAT ESC" at
  1147. command level if you don't know your escape character) followed by one of
  1148. several characters.
  1149.  
  1150. Terminal mode escape-sequences:
  1151.  
  1152. <ESC>-E         exits back to command level
  1153. <ESC>-?         prints a menu of escape sequences
  1154. <ESC>-S         start copying incoming text into file buffer (see below)
  1155. <ESC>-U         end (un-start) copying text into file buffer (see below)
  1156. <ESC>-P         toggle copy-to-printer on/off (if enabled with STAT LIST)
  1157. <ESC>-T         transmit a file to the remote (prompts for a filename)
  1158.  
  1159. Note that <ESC>-S and <ESC>-U require a filename argument with the T when
  1160. you enter terminal mode (otherwise, there is no file active to write the
  1161. incoming text into).
  1162.  
  1163. You can use <ESC>-P to copy incoming text to the printer.  The text is held
  1164. in a buffer, and prints only as the printer is ready for a character. Thus,
  1165. your printer may be slower than the modem, and you won't lose characters un-
  1166. less the buffer fills up.
  1167.  
  1168. Terminal-mode files (also called CAPTURE or ASCII-SAVE files) are created
  1169. by entering a filename with the T (or E or L) command; if the file already
  1170. exists, you will be asked if the file should be erased. MEX will create the
  1171. new file, and enter terminal mode.
  1172.  
  1173. At this point, incoming text is not yet being saved; to start saving text,
  1174. you must use the <ESC>-S terminal-mode command.  You can stop the save by
  1175. using the <ESC>-U command.  You can perform as many start/stop sequences as
  1176. you like (when text-save is active, you'll see a colon at the start of each
  1177. line as a visual signal that the save is active).
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.    Documentation for MEX114, extracted from MEX.HLP.  Page 18 of 22.
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1190.  
  1191.  
  1192. You can exit terminal mode and move freely among drives and user areas with-
  1193. out affecting an open term-file. The LOG command will still be useable, but
  1194. will not reset the disk (and will print a message to that effect).
  1195.  
  1196. If you enter terminal mode with the T,E or L command WITH a filename, when
  1197. a file is already open, the open file will be closed, and the new one opened.
  1198.  
  1199. You can transfer files using either Christensen or CIS protocols while a
  1200. TERM file is open -- your buffer may be written to disk to make room, but
  1201. nothing will be lost, and the file will still be open.
  1202.  
  1203. To close the file when you're done saving text, exit terminal mode with
  1204. <ESC>-E, and use the WRT command.  If you change your mind, and decide you
  1205. don't want to keep the file after all, use the DEL command to erase the
  1206. file entry and delete any text already saved in memory.
  1207.  
  1208. When your printer or ASCII-save buffer fills, MEX will send ann X-OFF char-
  1209. acter to the remote.  MEX will then wait for the remote to stop, and will
  1210. save up to an additional 150 characters into an auxiliary buffer (this buf-
  1211. fer may be increased in size by modifying MEXPATxx.OVR).  When the remote
  1212. stops (or the auxiliary buffer fills) MEX will write the ASCII-save buffer
  1213. to disk (if ASCII-save is active) and print characters until the printer
  1214. buffer is half-full (if List-copy is on).  Then MEX will re-start the remote
  1215. by sending an X-OFF character.
  1216.  
  1217. Note that for this scheme to work, the remote computer must respond to this
  1218. X-ON/X-OFF "protocol" (most computers do, but *not* all!).
  1219.  
  1220. You can transmit a local disk file to the remote with <ESC>-T; you will be
  1221. prompted for a filename.  If you have the XON and and XLINE variables turned
  1222. off (do "HELP XON" and "HELP XOFF" for information about changing these),
  1223. MEX will ask if you want to use the character and line delays for the file-
  1224. send; these delays allow slow remote computers to receive files.
  1225.  
  1226. The WCHAR and WLINE variables (see corresponding HELP sections) determine
  1227. the time-delay values for each character, and each lines respectively (of
  1228. course, you must have answered "Y" to the "want delays?" prompt.
  1229.  
  1230. If either of the the XLINE or XON switches is ON, the delay prompt will be
  1231. skipped, and delays will not be used.
  1232.  
  1233. XLINE is a technique used by some mainframes: after a line is transmitted,
  1234. MEX will not transmit another until receiving an X-ON character from the
  1235. remote.
  1236.  
  1237. XON is more frequently used: when XON is active, MEX will send characters
  1238. at full speed, but monitor the remote for an X-OFF character.  When an X-OFF
  1239. is received, MEX will pause until the remote sends an X-ON character.
  1240.  
  1241. XON is a STAT switch variable that affects the terminal-mode file send
  1242. (see "TERM-MODE" for a full description of terminal-mode file send).
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.    Documentation for MEX114, extracted from MEX.HLP.  Page 19 of 22.
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1256.  
  1257.  
  1258. When XON is set to ON, MEX will send all characters to the remote at full
  1259. speed, but will monitor for an X-OFF character from the remote.  When
  1260. MEX sees the X-OFF, it will pause, allowing the remote to read all of the
  1261. input MEX has transmitted.  When MEX sees an X-ON character from the remote,
  1262. it will resume the file transmission.
  1263.  
  1264.                                  CLOCK
  1265.  
  1266. CLOCK is a STAT value variable; you may set this variable to any value be-
  1267. tween 1 and 255.  The value is the CPU clock speed in tens of Megahertz
  1268. (hence, the speed may vary between .1 and 25.5 Mhz).  You can then use
  1269. the CLONE command to make this change permanent.
  1270.  
  1271. CLOCK is useful for "tweaking" MEX under varying conditions of load when
  1272. running under multi-tasking operating systems, such as MP/M and TurboDOS.
  1273. When system load is heavy, you can decrease the CLOCK value, causing MEX
  1274. to spend less time in its internal timing loops.
  1275.  
  1276.                                   REN
  1277.  
  1278. The REN command  syntax is similar to the normal CPM REN, except that
  1279. DU specifications may be employed in either the new OR the old filename
  1280. (but not in both).
  1281.  
  1282. In general the syntax is
  1283.  
  1284.                 REN <newfilename>=<oldfilename>
  1285.  Examples:
  1286.                 [MEX] A0>>REN NEWFILE=OLDFILE          (uses A0)
  1287.                 [MEX] C9>>REN B6:REPORT.OLD=REPORT.DOC (uses B6)
  1288.                 [MEX] B3>>REN 6:MYFILE=B:YOURFILE      (uses B6)
  1289.                 [MEX] D4>>REN ERROR=C9:BLUNDER         (uses C9)
  1290.  
  1291. Note that the following REN commands will produce errors:
  1292.  
  1293.                 [MEX] A0>>REN B3:SOMETHING=C:ELSE        (ambig drives)
  1294.                 [MEX] A0>>REN 6:ME=7:YOU                 (ambig user #'s)
  1295.  
  1296.            Note that REN will prompt for erasure if the new name already
  1297.            exists.  Further, before doing this, it checks for the existance
  1298.            of the old filename, and, if not found, aborts before checking
  1299.            for the the presence of the new name.
  1300.  
  1301.                                  TYPE
  1302.  
  1303. The TYPE command prints files on the console, similarly to the CP/M
  1304. TYPE command, but with pagination:  The syntax is:
  1305.  
  1306.                 TYPE <filename> <'P'>
  1307.  
  1308. The optional 'P' will affect pagination at screen boundaries: if pagination
  1309. is OFF ("STAT PAGE OFF") then 'P' will cause the file to be paged.  If
  1310. pagination is ON ("STAT PAGE ON"), then 'P' will inhibit pagination.
  1311.  
  1312.  
  1313.  
  1314.  
  1315.    Documentation for MEX114, extracted from MEX.HLP.  Page 20 of 22.
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1322.  
  1323.  
  1324. Examples:
  1325.  
  1326.                 A2>>COMMAND: TYPE REPORT.DOC    (paged output if PAGE ON)
  1327.                 A2>>COMMAND: TYPE REPORT.DOC P  (inhibits paging if PAGE ON)
  1328.  
  1329.                            PREFIX and SUFFIX
  1330.  
  1331. PREFIX and SUFFIX are used with the SENDOUT command (do "HELP SENDOUT" for
  1332. more information on the SENDOUT command).  PREFIX is used to manipulate a
  1333. special PREFIX string, and SUFFIX is used to manipulate a SUFFIX string.
  1334.  
  1335. The PREFIX string is transmitted ahead of any SENDOUT string, when the
  1336. SENDOUT command is used, and the SUFFIX string is transmitted after.  This
  1337. simplifies the construction of complex, repetitive command lines to be sent
  1338. to the remote.
  1339.  
  1340. Either command without arguments prints the current value of the string. To
  1341. change the string, enter the string on the command line after the command.
  1342.  
  1343. Examples:
  1344.  
  1345.                 PREFIX "XMODEM S "      <<== sets a prefix
  1346.                 PREFIX ""               <<== sets null prefix string
  1347.                 SUFFIX "^M"             <<== set carriage-return as suffix
  1348.  
  1349. MEX supports the same drive/user specification for files as Rick Conn's
  1350. ZCPR and ZCPR2: A file may be prefixed by either the drive name, the user
  1351. number or both (this extends to batch file transmissions).
  1352.  
  1353. Examples:
  1354.  
  1355.         [MEX] A3>>SB B3:*.ASM A9:*.OBJ C6:UPDATE.DOC
  1356.         [MEX] A0>>DIR A12:*.SUB
  1357.         [MEX] B3>>TYPE 5:REPORT.DOC
  1358.         [MEX] C3>>T B6:SESSION.LOG
  1359.  
  1360.                             LOGGING DRIVES
  1361.  
  1362. MEX supports relogging drive/user in two ways, both of which are
  1363. pertinent to a discussion of DU specifications:
  1364.  
  1365.    - LOG command: Takes optional DU spec (trailing colon optional)
  1366.                   resets disk system
  1367.    - At command prompt: simply enter the DU spec (colon required)
  1368.  
  1369. Examples:
  1370.  
  1371.                 [MEX] A0>>LOG        (relogs current d/u: resets system)
  1372.                 [MEX] A0>>LOG B:     (relogs current user, drive b, resets)
  1373.                 [MEX] A0>>LOG B7:    (relogs drive b, user 7, resets)
  1374.                 [MEX] A0>>B:         (logs current user, drv B, no reset)
  1375.                 [MEX] A0>>A9:        (logs drive A, user 9, no reset).
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.    Documentation for MEX114, extracted from MEX.HLP.  Page 21 of 22.
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.          MEX114.PRN - Copyright (C) 1984 by Ronald G. Fowler
  1388.  
  1389.  
  1390. MEX  supports multiple commands on a line, both in READ files, and in dir-
  1391. ectly typed commands.  A command line may optionally be entered on the CP/M
  1392. invocation command line, and this line may also contain multiple commands.
  1393. Note that a READ command will "stack" any current multiple commands; when
  1394. input from the READ file is exhausted, the remaining commands will then be
  1395. executed (a control-C at any time will abort a running READ file and/or a
  1396. multiple command line).
  1397.  
  1398. The multiple command separator in the file as distributed is the semi-
  1399. colon ";").  This character may be changed with the STAT command ("STAT ESC")
  1400. or in the patch file.
  1401.  
  1402. Examples:
  1403.  
  1404.    from CP/M:
  1405.  
  1406.         A>MEX DIR;READ MYFILE.MEX;SENDOUT "LOGOUT";BYE
  1407.  
  1408.         This example will bring up MEX, which will first print the directory,
  1409.         then begin executing MYFILE.USE, which may conain SENDOUT commands and
  1410.         R commands to send and receive files. When input from MYFILE.MEX is
  1411.         exhausted, MEX will send the string "LOGOUT" to the remote.  Finally,
  1412.         MEX will execute the "BYE" command.
  1413.  
  1414.    from MEX:
  1415.  
  1416.                 A3>>COMMAND: RB;SENDOUT "BYE";BYE
  1417.  
  1418.         This one receives a batch transmission, sends the string "BYE" (grace-
  1419.         fully logout from a remote CP/M system, for example), then disconnects
  1420.         and exits to CP/M.
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.    Documentation for MEX114, extracted from MEX.HLP.  Page 22 of 22.
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.