home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ZCOMMDOC.ZIP / ZCOMMDOC.AF < prev    next >
Encoding:
Text File  |  1995-03-21  |  70.2 KB  |  1,771 lines

  1.  
  2.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  3.       ZCOMM User Manual                                                  151
  4.  
  5.         with a tab, space, or label.  Goto commands within sourcefile search
  6.         for labels in the same sourcefile.  Gosub commands within sourcefile
  7.         access subroutines in the telephone directory accessed by the phones
  8.         string parameter.
  9.  
  10.         EXAMPLE: bud  source /usr/bin/caf/bin/callbud
  11.         This telephone directory entry pat calls a separate script file
  12.         containing commands to call a secret system.  Placing this
  13.         information in a separate file keeps it out of the main telephone
  14.         directory file, which might be used on a number of computers.
  15.  
  16.  
  17.         SEE ALSO: gosub command
  18.  
  19.       SPeed m Set the transmission speed ("baud rate") to m.[18] If the
  20.         speed specified is odd, or equal to 110, two stop bits are
  21.         transmitted; otherwise one stop bit is transmitted.  Typical speeds
  22.         are 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, and
  23.         115200 bits per second.
  24.  
  25.         EXAMPLE: speed 1200
  26.  
  27.         N.B.: Some older U.S. Robotics modems cannot accept the sustained
  28.         full speed output ZCOMM is capable of.  Using speed 2350 corrects
  29.         such a problem with the U.S. Robotics Courier 2400.
  30.  
  31.         Some 1200 and 2400 bps modems work better (lower error rate) if the
  32.         speed is set to slightly less than the nominal 1200 or 2400.  This
  33.         also applies to communications networks that cannot accept sustained
  34.         full speed data, and to serial ports whose raw bit rate clocks are
  35.         slightly fast.
  36.  
  37.         EXAMPLE: speed 1181 Sets the speed to 1181 bits per second with two
  38.         stop bits.
  39.  
  40.  
  41.         N.B.: Most timesharing minicomputers can send data from their serial
  42.         ports faster than they can receive.  A timesharing port that
  43.         supports interactive operation at 19200 bps may not tolerate file
  44.         uploads above 2400 bps.
  45.  
  46.         N.B.: Operation at high speeds is affected by the operating system
  47.         version, device drivers, memory resident software, and the
  48.         computer's hardware design.  Chapter 34 describes common problems
  49.  
  50.  
  51.       __________
  52.  
  53.       18. This is the DTE (Data Terminal Equipment) speed, the speed at
  54.           which the computer talks to the modem.
  55.  
  56.  
  57.  
  58.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  59.  
  60.  
  61.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  62.       ZCOMM User Manual                                                  152
  63.  
  64.         encountered in high speed operation.  The new generation
  65.         NS16550AN/NS16550FAN serial interface chips with FIFO buffers should
  66.         be used instead of 8250's or 16450's for best results at high speed.
  67.         This is imperative if disk caches, special device drivers or TSR
  68.         programs increase interrupt latency.
  69.  
  70.         SEE ALSO: 7e, 7o, 7m, 7s, 8n, 8g term options, handshake command, D
  71.         numeric parameter
  72.  
  73.       split svar Split (parse) string parameter svar into tokens stored in
  74.         string parameters z0...z9 using one or more of the characters in
  75.         string parameter ifs ("Internal Field Separator") to separate the
  76.         tokens. **
  77.  
  78.         EXAMPLE: If string parameter s1 contains "hello there folks" and ifs
  79.         contains a space and tab, split s1 Assigns "hello" to z0, "there" to
  80.         z1, and "folks" to z2.
  81.  
  82.  
  83.         EXAMPLE: Let s0 contain "#1234567-This is big-time Parsing", and ifs
  84.         contain "#1256- ".  The command split s0 Assigns "34" to z0, "7" to
  85.         z1, "This" to z2, "is" to z3, "big" to z4, "time" to z5, and
  86.         "Parsing" to z6.
  87.  
  88.  
  89.         SEE ALSO: y0...y127 string parameters, I,i,p test conditions, sets
  90.         command
  91.  
  92.       split svar string ... uses one string for each token generated.  An
  93.         empty string ("") assigns the rest of svar to the next token.
  94.         Otherwise, if tokens remain after the strings are exhausted, ifs is
  95.         used for parsing the remaining tokens.
  96.  
  97.         EXAMPLE: If s0 contains "#1234567-This is ZCOMM Parsing", The
  98.         command split s0 "-" "" Assigns "#1234567" to z0 and "This is ZCOMM
  99.         Parsing" to z1.
  100.  
  101.  
  102.         EXAMPLE: If s0 contains "503-621-3746", The command split s0 "-" "-"
  103.         Assigns "503" to z0, "621" to z1, and "3746" to z2.
  104.  
  105.  
  106.         SEE ALSO: ss command, scripts, Chapter 99
  107.  
  108.       ss svar regular-expression String Split svar according to regular-
  109.         expression.  ** Regular expressions are described in Chapter 26.
  110.         The entire matched string (if any) is stored in the z0 string
  111.         parameter.
  112.  
  113.         Matched groups are stored in the z1...z9 string parameters.
  114.         Parameters which do not receive a matched string or substring are
  115.  
  116.  
  117.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  118.  
  119.  
  120.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  121.       ZCOMM User Manual                                                  153
  122.  
  123.         set empty.
  124.  
  125.         EXAMPLE: If string parameter s0 contains
  126.                 From: Captain Midnight To: HBO Inc.
  127.         then the command      ss s0 "From: (.*) To: (.*)"
  128.         places "Captain Midnight" in z1 and "HBO Inc." in z2.  In this case,
  129.         z0 will contain the entire contents of s0.
  130.  
  131.  
  132.         SEE ALSO: split command, regular-expressions Chapter 26
  133.  
  134.       st [-options] pathspec Send the files specified in pathspec using the
  135.         Telink (FIDO) batch Protocol.  The pathname, length, and
  136.         modification time of each file are transmitted.  Files which cannot
  137.         be opened are skipped.  An empty pathspec sends all files in the
  138.         current directory.  A directory name expands to all regular files in
  139.         that directory.
  140.  
  141.         If an error aborts a file transmission (retries exhausted, etc.),
  142.         batch transfers terminate.
  143.  
  144.         EXAMPLE: st *.com Sends *.com
  145.  
  146.         N.B.: The receiver must be commanded to receive the files.
  147.  
  148.         SEE ALSO: Telink protocol, Chapter 13.
  149.  
  150.       sum pathspec Checksums the named text files with an alogrithym
  151.         compatible with sum(1) on Version 7 Unix (sum -r on System III/V,
  152.         cksum -o 1 on BSD).  Carriage returns, and all characters starting
  153.         with the first instance of CPMEOF (^Z) are excluded.  This
  154.         processing allows comparison of plain ASCII source files stored on
  155.         the different systems, but not binary files.  The checksum is
  156.         printed in octal, followed by a count of 512 byte blocks and bytes
  157.         read.
  158.  
  159.         EXAMPLE: sum *.c Checksums all C source files in the current
  160.         directory.
  161.  
  162.  
  163.         SEE ALSO: crc, wc commands
  164.  
  165.       sx [-options] file Send a single file using the Ward Christensen
  166.         XMODEM or XMODEM-CRC protocol.  The receiving program may request
  167.         use of a 16 bit CRC, which is more accurate than the default
  168.         checksum.  DOS/Unix files sent this way will have Control-Z (CPMEOF)
  169.         garbage characters appended to make the file length a multiple of
  170.         128.
  171.  
  172.         EXAMPLE: sx foo.com
  173.  
  174.  
  175.  
  176.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  177.  
  178.  
  179.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  180.       ZCOMM User Manual                                                  154
  181.  
  182.         EXAMPLE: sx -k foo.com Sends foo.com using 1024 byte blocks
  183.  
  184.         N.B.: The receiver must be commanded to receive the file with an rx
  185.         filename or rc filename command.
  186.  
  187.         SEE ALSO: XMODEM, XMODEM-1k, XMODEM-CRC protocols, Chapter 13.
  188.  
  189.       sz [-options] [PREFIX=p | ONAME=x] pathspec Send the files specified
  190.         in pathspec using ZMODEM Protocol.[19]
  191.         N.B.: If the remote supports ZMODEM AutoDownload, or accepts rz
  192.         followed by carriage return as a command to receive files with
  193.         ZMODEM protocol, only the sz command need be given.  Otherwise, the
  194.         receiver must be commanded to receive the files with an rz command
  195.         or menu choice.
  196.  
  197.         The +, a, b, n, N, r, y, and Z options are sent to the receiving
  198.         program.  Only one of the a, b, or r options may be specified.  Only
  199.         one of the +, n, N, or y options may be specified.
  200.  
  201.         Each skipped file is counted as an error as indicated by the e test
  202.         condition and e numeric parameter.  If the q option is used, files
  203.         skipped as a result of selective file transfers are not counted as
  204.         errors.
  205.  
  206.         The pathname, length, and modification time of each file are
  207.         transmitted.  Files which cannot be opened are skipped.  An empty
  208.         pathspec sends all files in the current directory.  A directory name
  209.         expands to all regular files in that directory.
  210.  
  211.         If ONAME=x is given after the options (if any) and before the file
  212.         name(s), x will be used exactly as given as the COMPLETE destination
  213.         pathname instead of each file's actual pathname.  It is the sender's
  214.         responsibility to use lower case for x unless the filename is really
  215.         supposed to be all caps.
  216.  
  217.         EXAMPLE: sz -y ONAME=B:/spiked/secret /soviet/sdi/newlaser.doc
  218.         Results in the destination file secret on drive B: in the /spiked
  219.         directory.  (Destination directories must exist and be writable).
  220.  
  221.  
  222.         If instead PREFIX=p is given after the options (if any) and before
  223.         the file name(s), p will be added to the destination pathname(s) as
  224.         a prefix.  It is the sender's responsibility to use lower case for p
  225.         unless the prefix is really supposed to be all caps.
  226.  
  227.  
  228.       __________
  229.  
  230.       19. The receiver may use the sz command to send files by uploading an
  231.           sz command with the zcommand command.
  232.  
  233.  
  234.  
  235.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  236.  
  237.  
  238.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  239.       ZCOMM User Manual                                                  155
  240.  
  241.         EXAMPLE: sz -y PREFIX=C:/foobaz/ /biff/bam/aardvark.wak
  242.         Results in the destination file "C:/foobaz/aardvark.wak"
  243.  
  244.  
  245.         EXAMPLE: sz *.com   Sends all files with a .com extension.
  246.  
  247.  
  248.         EXAMPLE: sz -r ??log Crash Recovery sends only the new data if the
  249.         receiver has incomplete versions of these files.
  250.  
  251.  
  252.         EXAMPLE: sz -fn src/*.c src/*.h maildir
  253.         Sends only newer .c and .h files in the src subdirectory, and all
  254.         new files in the maildir subdirectory.
  255.  
  256.  
  257.         EXAMPLE: zcommand "sz -fn /bin /wp"
  258.         commands a remote ZCOMM system in Host Operation (unrestricted) to
  259.         send all new files in the /bin and /wp directories.
  260.  
  261.  
  262.         EXAMPLE: sz -Yn *.c Sends only newer versions of files that already
  263.         exist at the destination.
  264.  
  265.  
  266.         EXAMPLE: sz -Rf usera Sends all files in the usera directory and all
  267.         subdirectories thereof.  Directories are not sorted when the R
  268.         option is used on 16 bit systems.
  269.  
  270.         SEE ALSO: ZMODEM protocol, Chapter 13, Options, Chapter 20.
  271.  
  272.  
  273.  
  274.       szb [-options] [PREFIX=p | ONAME=x] pathspec As above, but "falls
  275.         back" to YMODEM if the receiver cannot receive files with ZMODEM
  276.         protocol.  Because of the YMODEM fallback, szb is not as error
  277.         resistant as the sz command.
  278.  
  279.       t [-term_options] [capturefile] Invokes the term function for
  280.         conversational access to the remote.  Normally, ZCOMM will remain in
  281.         the termfunction until the user keyboards F1.
  282.  
  283.         If capturefile is specified, any currently opten capture file is
  284.         closed and capturefile is opened.  A file previously opened by "t
  285.         file" is not closed by a t command given without an argument.
  286.  
  287.         EXAMPLE: t file1 Creates file1 to capture data sent by the remote in
  288.         interactive conversation.
  289.  
  290.  
  291.         SEE ALSO: create command
  292.  
  293.  
  294.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  295.  
  296.  
  297.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  298.       ZCOMM User Manual                                                  156
  299.  
  300.         If a file upload begun by an f or open command were in progress, the
  301.         upload will resume with the t command subject to the g term option.
  302.  
  303.         In host operation, "t file" begins data capture, and received
  304.         characters are not echoed.  When the remote sends ETX, EOT, or
  305.         Ctrl-Z, file is closed and the term function exits.
  306.  
  307.         EXAMPLE: t comments.txt<ENTER>
  308.         jabber ... jabber ... Ctrl-Z
  309.  
  310.  
  311.         Optional termoptions may be enabled to modify the display, storage,
  312.         or transmission of information.
  313.  
  314.         Subcommands available from the term function are explained in
  315.         Chapter 21.  Characters special to the term function are also
  316.         described in Chapter 21.
  317.  
  318.       tcs M N The local display of ASCII characters can be remapped to suit
  319.         local requirements with the tcs (Terminal Character Set) command,
  320.         where M is the incoming character (1 to 255) and N is the desired
  321.         hardware character 1 to 255.
  322.  
  323.         EXAMPLE: tcs 91 146 translates the ASCII [ character to the AE
  324.         character.
  325.  
  326.  
  327.         The command tcs by itself disables these translations but does not
  328.         reset the translation table.
  329.  
  330.         The command tcs 0 resets the entries in the translation table.
  331.  
  332.         SEE ALSO: display command
  333.  
  334.       timestamp * Iff a capture file is open, write out the circular buffer.
  335.         Then write a line containing the remote system name, number of
  336.         characters transmitted from disk, the number of characters received
  337.         to disk, average characters received per second, [20] the date and
  338.         time, and the term function status line information (time, options,
  339.         etc.) to the file and to the display.
  340.  
  341.         EXAMPLE: timestamp; echoc "End: %e Errors"
  342.            Timestamp: vif 0 127857 97/sec 1342:37 07-09-86
  343.            01 24 13:42 21:50   28672 2:1200 7e  EhjSt >cis0709.tmp
  344.            Allsig Ends: 0 Errors
  345.  
  346.  
  347.       __________
  348.  
  349.       20. Since the last call or restime command.
  350.  
  351.  
  352.  
  353.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  354.  
  355.  
  356.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  357.       ZCOMM User Manual                                                  157
  358.  
  359.         The character counts are reset when the corresponding files are
  360.         opened.
  361.  
  362.         SEE ALSO: restime, ALT-E commands, E test condition, t string
  363.         parameter
  364.  
  365.       trs svar string1 string2 String1 and string2 are first processed for
  366.         character escapes.  Then translate string variable svar from the
  367.         character set in string1 into the character set in string2.  *
  368.         Characters in String1 with no corresponding character in String2 are
  369.         deleted.  Characters in svar not appearing in String1 are not
  370.         modified.  The "trs" command may not be used in the body of a
  371.         "while" command.
  372.  
  373.         EXAMPLE: trs s0 "\\{}" "/" Changes backslashes to slashes, and
  374.         removes "{" and "}" characters.
  375.  
  376.  
  377.       TYPe pathspec Type the specified file(s).  This command closes any
  378.         open transmit file.  Type pauses/resumes printing with ^S.
  379.         Keyboarding ^C or Ctrl-Break cancels, and ^X skips to the next file.
  380.         <Ctrl-Home> clears the screen without pausing, avoiding scrolling.
  381.  
  382.         SEE ALSO: browse, list, page commands, Unix b, bro, typ commands
  383.  
  384.         EXAMPLE: type *.txt *.doc
  385.  
  386.  
  387.       unrestrict Prompts for a password and unrestricts ZCOMM if the
  388.         password exactly matches the contents of the unrestrict string
  389.         parameter.  If unrestrict is empty or the given password does not
  390.         match in three attempts, the call is immediately terminated.
  391.         Unrestrict is used in Host Operation by a caller who wishes
  392.         unrestricted access to ZCOMM's computer to view confidential files
  393.         or perform maintenance.
  394.  
  395.         EXAMPLE: unrestrict Prompts for a password (to match the unrestrict
  396.         parameter), then allows three tries to enter it correctly.
  397.  
  398.  
  399.         SEE ALSO: Host operation
  400.  
  401.       videobios N Sets the video BIOS mode to N.  This command is useful for
  402.         accessing the high resolution super EGA display text modes, such as
  403.         100 columns by 75 lines corresponding to high resolution 800x600
  404.         displays.  The $ and # numeric parameters must be separately set to
  405.         agree with the new BIOS video mode.
  406.  
  407.         The action of the video ROM BIOS to specific values depends on the
  408.         particular EGA/VGA ROM BIOS used.  To support boards using an
  409.         extended code in the bl register, calculate N = bl + (256 * al).
  410.  
  411.  
  412.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  413.  
  414.  
  415.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  416.       ZCOMM User Manual                                                  158
  417.  
  418.         Some codes produce spectacular unpredictable results.  This command
  419.         is restricted, and is available on medium model DOS flavors only.
  420.  
  421.         EXAMPLE: videobios 3 Sets BIOS video mode 3 (80x25).
  422.  
  423.  
  424.         SEE ALSO: V and W numeric parameters
  425.  
  426.       w Writes the contents of the circular buffer to the capture file.
  427.  
  428.       wait [-term_options] Wait activates the term function to search for
  429.         each pattern that has been defined with the pattern command.  If a
  430.         file has been opened with the create or t file commands, buffer
  431.         capture continues during the wait command.  If a file upload
  432.         (inititated by an f file command) was in progress, the upload will
  433.         resume with the wait command subject to the g term option.
  434.  
  435.         Script execution resumes when the wait command returns because of a
  436.         pattern match, timeout, no carrier detect, or keyboarded F1.  The
  437.         wait command's pattern search timeout is effective even if no search
  438.         patterns have been set with the pattern command.
  439.  
  440.         SEE ALSO: pattern, put, putw commands, fN term option
  441.  
  442.       wc pathspec Counts lines, words, printing characters, and all
  443.         characters for the specified files.  The totals are then presented.
  444.         Characters beginning with CPMEOF (^Z) are excluded.[21] The count of
  445.         printing characters is useful for estimating laser toner and printer
  446.         ribbon usage.
  447.  
  448.         EXAMPLE: wc *.c *.h
  449.  
  450.  
  451.         SEE ALSO: crc, sum commands
  452.  
  453.       while condition rest-of-line Scripts must often repeat a command or
  454.         set of commands while some condition remains true.  The while
  455.         command executes the command(s) on the rest of the line while
  456.         condition is true.  Chapter 27 describes testable conditions.  An
  457.         inadvertently generated while loop may be stopped by keyboarding
  458.         NUKE (ALT-N).
  459.         N.B.: The rest of the line must not contain an if command or
  460.  
  461.  
  462.       __________
  463.  
  464.       21. The line and word counts agree with the Unix word count program,
  465.           but the character count will differ because of CR characters not
  466.           stored in most Unix text files.  The Unix word count program does
  467.           not have a count of printing characters.
  468.  
  469.  
  470.  
  471.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  472.  
  473.  
  474.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  475.       ZCOMM User Manual                                                  159
  476.  
  477.         semicolons separating commands.  While commands may not be nested.
  478.  
  479.         EXAMPLE: pat 1 "ogin:";  while !1 put "\r" wait -f1 Repeatedly sends
  480.         a carriage return until the remote responds with "Login:".[22]
  481.  
  482.  
  483.         EXAMPLE: while "!1&&L<5" put "\r" wait -f1 Works as above, but only
  484.         tries 5 times.
  485.  
  486.  
  487.       x (eXit) Writes and closes any open files, releases ownership of the
  488.         serial port, then exits to the operating system without
  489.         disconnecting the phone line.[23] Exit status is the value of the ?
  490.         numeric parameter.  This command is not allowed if Restricted.
  491.  
  492.       xpc ... * The ZCOMMXPC flavor of ZCOMM supports the Tymnet(TM) X.PC
  493.         link level protocol with the xpc commands.  See a following
  494.         subchapter of Chapter 19 for a more detailed description of the X.PC
  495.         packet driver and the xpc commands that control it.
  496.  
  497.       xy [column] row Place the cursor on the local display specified column
  498.         and row.  The home position corresponds to an xy 1 1 command.
  499.         Column and row can be string parameters holding numbers.
  500.  
  501.       zcommandi COMMAND Send COMMAND with ZMODEM protocol, do NOT wait for
  502.         command completion.
  503.  
  504.         EXAMPLE: zcommandi "!make whoopie"
  505.  
  506.  
  507.       zcommandic COMMAND Process COMMAND for string substitutions and
  508.         character escapes and send with ZMODEM protocol, do NOT wait for
  509.         command completion.
  510.  
  511.       zcommandw COMMAND Send COMMAND to the remote with ZMODEM protocol.
  512.         ZMODEM assures an error free command upload.  Wait for COMMAND to
  513.         complete on the remote.  Store the command's exit value in the ?
  514.         numeric parameter, available to the ?  test condition.
  515.         N.B.: With the exception of sz, no command that involves the serial
  516.         port may be the argument of zcommand.
  517.  
  518.  
  519.  
  520.       __________
  521.  
  522.       22. The "L" in "Login" is not searched for on purpose.  On Unix
  523.           systems, the "l" is not always capitalized.
  524.  
  525.       23. On some Unix systems, the operating system may alter the state of
  526.           the serial port after ZCOMM exits.
  527.  
  528.  
  529.  
  530.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  531.  
  532.  
  533.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  534.       ZCOMM User Manual                                                  160
  535.  
  536.         EXAMPLE: zcommandw "sz foo.bar" Causes the remote to send a file
  537.         with ZMODEM protocol.
  538.  
  539.  
  540.         EXAMPLE: zcommandw "!ls -l | sz -a -" Causes a remote Unix system to
  541.         send a file containing a directory listing to ZCOMM.
  542.  
  543.  
  544.         As a special case, zcommandw with an empty command fetches the
  545.         remote's disk file system free character count.  This quantity is
  546.         then available to the R test condition.
  547.  
  548.         EXAMPLE: zcommandw ""; if "R>10000" sz hugefile Fetches the free
  549.         disk space from the remote, and sends hugefile if the destination's
  550.         free space is greater than 10000 kilobytes.
  551.  
  552.  
  553.       zcommandwc COMMAND Process COMMAND for string substitutions and
  554.         character escapes and send with ZMODEM protocol, wait for command
  555.         completion.
  556.  
  557.       zmodem Used as a prefix to the p command to select the "zmodem"
  558.         parameters, or by itself to select the ZMODEM protocol for commands
  559.         which operate in a choice of protocols depending on past history.
  560.  
  561.         EXAMPLE: zmodem
  562.              !!sz *.*
  563.         Uses ZMODEM to send a command to the remote machine to send all the
  564.         files in its current directory.
  565.  
  566.       _ Enter a diagnostic routine that prints information about each
  567.         keystroke entered.  Keyboarding LF (Ctrl-Enter) exits the _
  568.         (underscore) command.  When a key is struck, the scancode, modified
  569.         scancode, and the shift state are displayed in decimal.  The
  570.         modified scancode is either the raw scancode as returned by the BIOS
  571.         or 224 added to the ZCOMM internal code iff the raw scancode equals
  572.         224.  The ZCOMM internal code for the key (usually the ASCII value)
  573.         is displayed in octal.  This command may be used for exploring
  574.         keyboard encoding and preparing alternate keyboard mappings for use
  575.         with the mk command.
  576.  
  577.         SEE ALSO: mk command
  578.  
  579.  
  580.       ![%][~]command Invoke the local operating system to execute command
  581.         (either a program or a DOS built-in command) as a subprogram.  A
  582.         leading % (percent sign) processes Command for string parameter
  583.         substitutions.  See Chapter 19.5 for details on DOS Gateways and
  584.         Unix Shell Escapes.
  585.  
  586.  
  587.  
  588.  
  589.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  590.  
  591.  
  592.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  593.       ZCOMM User Manual                                                  161
  594.  
  595.       !!host-command Sends the rest of the line (after !!) to a remote
  596.         ZMODEM program or Kermit server for execution on the server machine.
  597.         host-command is not processed for string parameters.  This is a
  598.         convenient alternative to remote host host-command-string
  599.         particularly if host-command contains spaces.
  600.  
  601.       label: A label begins at the first column and ends with a colon.  One
  602.         or more commands may appear on the same line separated from the
  603.         label by white space.  A label may have the same name as a directory
  604.         entry provided the directory entry appears first in the script file.
  605.         N.B.: a label differs from a directory entry, which doesn't end with
  606.         a colon.  When ZCOMM encounters the next directory entry in script
  607.         processing, an automatic "return" is performed.
  608.  
  609.         EXAMPLE: if 1 goto cond1
  610.              echo "Pattern 1 not matched"
  611.         cond1:    echo "processing continues"
  612.         foosys    speed 2400 666-1234 t
  613.  
  614.  
  615.       :comment A colon as first character in a command causes the rest of
  616.         the command line to be ignored.  This is also useful for "commenting
  617.         out" commands in script files.
  618.  
  619.         EXAMPLE: : this line does nothing at all
  620.  
  621.  
  622.       ; Semicolon is a command delimiter which may be used in place of
  623.         RETURN to place multiple commands on a line.  Since commands such as
  624.         echo, set, sb, pattern, list, and type take an indefinite number of
  625.         operands, the semicolon must be used to string such commands
  626.         together.
  627.  
  628.         EXAMPLE: sb *.c; off Batch transmits all *.c files, then puts the
  629.         modem on hook and exits to DOS.
  630.  
  631.         Semicolon is not a command delimiter if it is escaped by a backslash
  632.         or if it appears within a quoted string.
  633.  
  634.         EXAMPLE: pat 0 ";" Sets pattern 0 to search for a semicolon.
  635.  
  636.         Commands that take a fixed number of arguments may be strung
  637.         together without a semicolon unless otherwise noted.
  638.  
  639.         EXAMPLE: port 1 speed 1200
  640.  
  641.  
  642.       <file Redirects input used by the command prompt and review function.
  643.         When reading input from file, certain characters are special:
  644.  
  645.  
  646.  
  647.  
  648.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  649.  
  650.  
  651.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  652.       ZCOMM User Manual                                                  162
  653.  
  654.             ~  Accept the next character verbatim.
  655.  
  656.             |  Sleep for one second.
  657.  
  658.             '' Double quote echoes succeeding characters to the display with
  659.                highlighting until the next double quote is encountered.
  660.       On end of file, a ^U is returned and input reverts to the keyboard.
  661.       The file rev on the demonstration disk is a typical file which might
  662.       be used with the < command.
  663.  
  664.       >[>]outfile Redirects output from succeeding utility commands and
  665.         debug output (if the v numeric parameter is non zero) to outfile.
  666.         Capture from the circular buffer is also enabled, but there is no
  667.         automatic writing of the circular buffer to the file on close.
  668.         >>outfile appends to outfile.  The output redirection is canceled by
  669.         the close command or by > without a filename.  DOS predefined device
  670.         names such as "prn" may be used.
  671.  
  672.         The syntax of ZCOMM's redirection differs from that used by DOS and
  673.         UNIX. ZCOMM's output must be redirected before the command(s) are
  674.         given, and the redirection stays in effect until explicitly
  675.         canceled.  ZCOMM's command prompt is not redirected.
  676.  
  677.         EXAMPLE: bdump file0
  678.              kill
  679.              >file1
  680.              dump file0
  681.              close
  682.         Dumps the contents of the modem input buffer to file0.  Output is
  683.         then redirected to file1 and contents of file0 are displayed in side
  684.         by side hex/ascii format.
  685.  
  686.         Note that the create and t filename commands do not redirect utility
  687.         command output to the file.
  688.  
  689.  
  690.       19.1  Function Key Commands
  691.  
  692.       Some function keys are recognized at the command prompt.  Function key
  693.       commands may not be mixed with any other character.  For example,
  694.       keyboarding "t PgUp" elicits an error bell.
  695.  
  696.       Some scrips redefine the function keys.  The standard assignments may
  697.       be restored with a gosub setup command.
  698.  
  699.  
  700.       F2 From the command prompt, F2 enters term function.
  701.  
  702.         SEE ALSO: t [file] command
  703.  
  704.  
  705.  
  706.  
  707.       (C) 1994 Omen Tech Inc                Chapter 19 Function Key Commands
  708.  
  709.  
  710.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  711.       ZCOMM User Manual                                                  163
  712.  
  713.       Up Select the previous command in the command stack for reentry.
  714.  
  715.       Down Select the next command in the command stack for reentry.
  716.  
  717.       Home,PgUp,End Enter the review function.
  718.  
  719.       F3...F10 Function keys F3 to F10 are programmed by set commands in the
  720.         "setup" directory in the distributed telephone directory.  The key
  721.         definitions in PHODIR.t may be modified or removed at your
  722.         discretion.
  723.  
  724.       F3 Receives files with YMODEM protocol, or XMODEM. [24]
  725.  
  726.       F4 Invokes TurboLearn Script Writer(TM) to record keystrokes and
  727.         computer dialog, then generates a script using this information.
  728.  
  729.         If ZCOMM is not currently connected to a system, the script called
  730.         by F4 prompts the user for telephone number, baud rate, and parity.
  731.         When recording is finished, the script prompts for a pathname to
  732.         store the completed TruboDial script in.
  733.  
  734.       F5 On Unix systems, begin background operation and issue a sub shell
  735.         for the user.  ZCOMM operation proceeds with screen output
  736.         suppressed.  If ZCOMM should require keyboard input before the user
  737.         returns, ZCOMM waits for the user to return.
  738.  
  739.       F6 Prompts for a file name, then receives that file with the XMODEM-
  740.         CRC protocol.  ZCOMM will revert to the basic XMODEM protocol after
  741.         a few timeouts if the sender does not support CRC-16.
  742.  
  743.       F7 Prompts for a file name, then transmits that file with XMODEM
  744.         protocol.  If the file name includes wildcard characters, or if more
  745.         than one file name is given, or if a directory name is given, YMODEM
  746.         protocol will be used.
  747.  
  748.       F8 Generates and transmits a password based on the called system's
  749.         name and the string parameter xpassword.  * This command is valid
  750.         only when called from the term function.
  751.  
  752.       F9 Calls a script to add a new system entry to the Telephone
  753.         Directory.  The script prompts for a system name, and checks for
  754.         duplications with entries currently in the Phone Directory.  The
  755.         script prompts for comments which will display when that system is
  756.         called.  Speed and parity are then prompted for, and the entry is
  757.  
  758.  
  759.       __________
  760.  
  761.       24. ZCOMM generates a file name if the sending program does not
  762.           provide one.
  763.  
  764.  
  765.  
  766.       (C) 1994 Omen Tech Inc                Chapter 19 Function Key Commands
  767.  
  768.  
  769.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  770.       ZCOMM User Manual                                                  164
  771.  
  772.         added to the end of the Phone Directory.
  773.  
  774.       F10 Invokes the "help" command or help processor.
  775.  
  776.       Shift-F1 List the Phone directory.
  777.  
  778.       Shift-F2 Search Phone Directory for system names matching user
  779.         supplied string.
  780.  
  781.       Shift-F3 List voice calls in the Phone Directory.
  782.  
  783.       Shift-F4 Disconnect the modem from telephone line (hang it up).
  784.  
  785.       Shift-F5 Prompt for a system name and add a command to call it to the
  786.         circular dialing queue.  List the queue contents.
  787.  
  788.       Shift-F6 Run (execute) the circular dialing queue.
  789.        The following function keys are valid at the main command prompt,
  790.       from the term function, and from the review function.
  791.  
  792.       Ctrl-Home Resets display modes and clears the screen.
  793.  
  794.       ALT-1 Prompt for a command to be executed by the operating system,
  795.         then execute it.
  796.  
  797.         EXAMPLE: ALT-1
  798.         DOS Command: dir/w
  799.  
  800.  
  801.       ALT-2 Prompt for a ZCOMM command, then execute it.
  802.  
  803.         EXAMPLE: ALT-2
  804.         YAM Command: speed 115200
  805.  
  806.  
  807.       ALT-C Writes the circular buffer to disk and closes any open send or
  808.         receive file(s).  ZCOMM complains if no files were open.
  809.  
  810.         SEE ALSO: close command
  811.  
  812.       ALT-D Lists the current directory of the default disk.
  813.  
  814.         SEE ALSO: dirr command
  815.  
  816.       ALT-M Toggles keyboard mapping.
  817.  
  818.         SEE ALSO: display mapkb command, N numeric parameter
  819.  
  820.       ALT-R Enter the review function.
  821.  
  822.         SEE ALSO: review command
  823.  
  824.  
  825.       (C) 1994 Omen Tech Inc                Chapter 19 Function Key Commands
  826.  
  827.  
  828.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  829.       ZCOMM User Manual                                                  165
  830.  
  831.       ALT-S Displays status on the local screen only, even if ZCOMM is in
  832.         host operation.
  833.  
  834.         SEE ALSO: s command
  835.  
  836.       ALT-U Toggles Upper case conversion of keyboard and file characters
  837.         sent with the term function ( t, f, F2 commands).  The answerback
  838.         and programmed strings are not affected.  Protocol file transfers
  839.         are not affected.  The u term option is reset by the call command.
  840.  
  841.         SEE ALSO: u mode
  842.  
  843.       ALT-W Writes the circular buffer to the receive file.  Equivalent to
  844.         the main w command.
  845.  
  846.         SEE ALSO: w command
  847.  
  848.       F1...FA10 etc. The Soft Keys can be programmed (with "set" commands)
  849.         either to send a string of characters to the remote or to invoke a
  850.         ZCOMM command sequence.  Iff the string begins with "@", the
  851.         remainder of the string is treated as a ZCOMM command.  No strings
  852.         are sent to the remote from the command prompt or from the review
  853.         function.
  854.  
  855.         The soft keys can be changed for each remote system or different
  856.         application programs, with set commands embedded in the appropriate
  857.         telephone directory entry.  The ALT-K key displays the strings
  858.         assigned to these keys.
  859.  
  860.         There are 48 soft keys, f1 to f12,fs1 to fs12,fc1 to fc12,fa1 to
  861.         fa12, plus some of the cursor keys.  ( fs1 is obtained by Shift-F1.
  862.         fc1 is obtained by Ctrl-F1.  fa1 is obtained by Alt-F1.) In
  863.         addition, the cursor keys may be reassigned to send strings to the
  864.         remote when in the term function.  To list them, set the v (verbose)
  865.         parameter non zero ("pv1"), then give a "set" command.  Most soft
  866.         keys have names beginning with f, and are described in Chapter 25.
  867.  
  868.       19.2  Browse Command
  869.  
  870.       BROwse pathspec browses through the specified files.  If pathspec is
  871.       empty, all files are presented.  For each matched pathname, the
  872.       filename, date, and length are displayed.  The status line displays
  873.       some of the possible (one letter) commands.
  874.  
  875.       EXAMPLE: >>>c:bro *.c
  876.       CFLOW.C          13:18:10 02-25-86   6072 ?
  877.       app, back, copy, Del, mv, next, page, sz, S, quit, {rR}ead, view, !, @
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.       (C) 1994 Omen Tech Inc                       Chapter 19 Browse Command
  885.  
  886.  
  887.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  888.       ZCOMM User Manual                                                  166
  889.  
  890.       a, A Prompts for a pathname and then appends the current file to it.
  891.         Both DOS and CP/M format files are handled correctly.  The A choice
  892.         then deletes the file.
  893.  
  894.       b Backs up to the previous file.  Browse will not back up past a
  895.         deleted or renamed file.
  896.  
  897.       c prompts for a target pathname.  The resulting DOS command
  898.         copy file target is executed by a copy of COMMAND.COM.  Target may
  899.         include the switches available with the DOS copy command.  The
  900.         pathnames given must be legal for DOS, with \ separating directories
  901.         from filenames.[25]
  902.  
  903.         EXAMPLE: c
  904.         Copy to: a:
  905.  
  906.  
  907.         SEE ALSO: "HINT" below
  908.  
  909.       D Deletes the file.
  910.  
  911.       SP, CR skip to the next file.
  912.  
  913.       r, R The R subcommand first kills the circular buffer.  Then read the
  914.         file (or as much as will fit) into the circular buffer, then call
  915.         the review function.  The review function subcommands can be used to
  916.         page back and forth through the file, write portions of the buffer
  917.         to files, and so on.  If review is exited with the file still open,
  918.         browse closes it.  This subcommand is not available if Restricted.
  919.  
  920.         SEE ALSO: review function
  921.  
  922.       n Sends the file with the ZMODEM n option (send file only if the
  923.         source is newer than the destination).
  924.  
  925.       S sends the selected file with XMODEM protocol.  The user must start
  926.         an XMODEM receive on the other machine.
  927.  
  928.       s sends the selected file with ZMODEM or YMODEM Protocol and 1kb
  929.         packets.  If the other program has ZMODEM AutoDownload enabled (Z
  930.         mode) the file transmission will be automatic.  Otherwise, the user
  931.         must start a YMODEM or ZMODEM receive on the other machine.  The s
  932.         and S subcommands are useful when issued by a remote caller browsing
  933.         through files in a directory.
  934.  
  935.  
  936.  
  937.       __________
  938.  
  939.       25. Unless the DOS SWITCHAR has been changed to "/".
  940.  
  941.  
  942.  
  943.       (C) 1994 Omen Tech Inc                       Chapter 19 Browse Command
  944.  
  945.  
  946.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  947.       ZCOMM User Manual                                                  167
  948.  
  949.       t Tail reads the tail of the file into the circular buffer and
  950.         displays the last 24 lines.
  951.  
  952.       Q, X Quit ends the file list.  X is provided for the convenience of
  953.         users accustomed to the wash and sweep programs.
  954.  
  955.       V, Ctrl-V View the file, whether it is a regular or SQueezed file.
  956.  
  957.       ! prompts for a DOS command and then attempts to execute it.  Some DOS
  958.         commands that might be useful are rename, del, print, move, emacs,
  959.         mince, edlin, chkdsk, and chmod.  When entering the DOS command, a
  960.         keyboarded % is replaced by the pathname of the currently selected
  961.         file.
  962.  
  963.         Please refer to the !  command for details and caveats.
  964.  
  965.         EXAMPLE: !emacs % calls EMACS to edit the selected file.
  966.  
  967.  
  968.       @ Prompts for a ZCOMM command, and then executes that command as if it
  969.         had been entered at the main command prompt.  The @ subcommand
  970.         should not be used for any command that involves file names.
  971.  
  972.         EXAMPLE: @display vt100
  973.  
  974.  
  975.       * Any other letter redisplays the file information and repeats the
  976.         prompt.
  977.  
  978.       After the file list is exhausted, ZCOMM prints the free storage
  979.       remaining on the default disk.
  980.       HINT: Use a directory command to change the order in which the files
  981.       are presented for the browse command.  For example, assume we have a
  982.       directory src on drive c: (hard disk) and a floppy drive F: with a
  983.       scratch disk inserted.  The command sequence
  984.           dirt
  985.           f:
  986.           browse c:/src
  987.       displays each file in the src directory beginning with the newest.
  988.       Typing c tells ZCOMM you want to copy the file.  When ZCOMM asks for
  989.       the filename, just hit <CR> and the file is copied.  (The resulting
  990.       command to command.com is "COPY c:/src/file").  This sequence may be
  991.       used to "clean up" a directory.
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.       (C) 1994 Omen Tech Inc                       Chapter 19 Browse Command
  1003.  
  1004.  
  1005.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1006.       ZCOMM User Manual                                                  168
  1007.  
  1008.       19.3  DOS Gateway
  1009.  
  1010.       A "Shell Escape" or "DOS Gateway" executes a DOS COMMAND (a program or
  1011.       command) as a subroutine.  If the first non white-space character of
  1012.       the line is !, the entire line, less the !, is executed as a DOS
  1013.       command, as if it were typed to DOS in the absence of ZCOMM.  If the !
  1014.       command is not the first command on the line, the command string must
  1015.       conform to ZCOMM's rules pertaining to strings.  DOS Gateways are not
  1016.       allowed if ZCOMM is RESTRICTED.
  1017.  
  1018.       If the next character is % the rest of the command is processed for
  1019.       string substitutions.
  1020.  
  1021.  
  1022.       EXAMPLE: !whereis thebeef.* Uses the public domain WHEREIS.COM program
  1023.       to find certain files on the hard disk.
  1024.  
  1025.  
  1026.       EXAMPLE: !dir >foo Generate a directory listing, with output
  1027.       redirected by DOS to foo.
  1028.  
  1029.       The command line keys !dir keys displays the soft keys, executes a DOS
  1030.       "dir" command without arguments, and then displays the soft keys
  1031.       again, while the command line !dir keys calls DOS to print directory
  1032.       information for the file keys.
  1033.  
  1034.       Before executing a !  command, ZCOMM restores the modem port's
  1035.       Interrupt Service Routine's previous interrupt vector and interrupt
  1036.       enable bits.  ZCOMM also synchronizes the BIOS display driver.  After
  1037.       return from the DOS command, ZCOMM enables DTR, the ISR vector,
  1038.       interrupts on the modem port, and resumes direct control of the
  1039.       display.
  1040.  
  1041.       If the command name begins with "%" (per cent sign) the remainder of
  1042.       the command string is processed for string substitution (but not
  1043.       character escapes).
  1044.  
  1045.       EXAMPLE:      set s0 this.txt
  1046.            !%mv %s0 bakdir
  1047.  
  1048.       If the command name (after an optional leading "%") begins with ~
  1049.       (tilde), ZCOMM does NOT restore the modem port's Interrupt Service
  1050.       Routine's previous interrupt vector and interrupt enable bits.  The
  1051.       called program may then access the modem with the ROM BIOS interrupt
  1052.       hex 14, which is mapped to ZCOMM's modem service routines during the
  1053.       execution of the !~ command.
  1054.  
  1055.       When the modem is accessed this way, incoming characters are buffered
  1056.       in ZCOMM's interrupt buffer, preventing loss of characters when
  1057.       scrolling above 300 bits per second.  Unlike the ROM BIOS routines
  1058.       (which are a compromise to allow driving serial printers), the ZCOMM
  1059.  
  1060.  
  1061.       (C) 1994 Omen Tech Inc                          Chapter 19 DOS Gateway
  1062.  
  1063.  
  1064.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1065.       ZCOMM User Manual                                                  169
  1066.  
  1067.       int 14h handler does not depend on the state of DSR or CTS.
  1068.  
  1069.       This interface allows other programs to perform specialized functions,
  1070.       such as graphic screen operation or special CRT terminal emulation.
  1071.       One such program is COMSH.EXE available on Compuserve's Programmers'
  1072.       Special Interest Group (GO PCS-158).[26]
  1073.  
  1074.       EXAMPLE: !~comsh
  1075.  
  1076.       The ZCOMM BIOS EMULATOR replacing the int 14h modem service routine
  1077.       accepts the standard BIOS INT 14h functions encoded in the AH register
  1078.       as described in the IBM Technical Reference Manual.  Since the modem
  1079.       port is selected by ZCOMM, the DX register is ignored.  The character
  1080.       ready status bit reflects whether ZCOMM's modem interrupt buffer has
  1081.       one or more characters waiting.
  1082.  
  1083.       The !~ command uses special logic to allow programs to exit gracefully
  1084.       when carrier detect is lost.
  1085.  
  1086.       If the command contains a space but none of the ^ < > or | characters,
  1087.       DOS ZCOMM attempts to execute the command with the Microsoft C
  1088.       spawnvp() function, which returns the program's exit status to the ?
  1089.       test condition.  Otherwise, or if the Microsoft C spawnvp() failed, !
  1090.       commands are interpreted by DOS's COMMAND.COM; This kluge will go away
  1091.       when Microsoft's rokcet scientests learn how to write a command.com
  1092.       that executes commands and properly returns the exit status.
  1093.  
  1094.       Batch files and built-in commands may be invoked as well as programs.
  1095.       Some useful DOS built-in commands are rename, copy, date, and time.
  1096.  
  1097.       Caution should be exercised with commands that affect disk files if
  1098.       ZCOMM has files open at the time.  Programs that remain resident in
  1099.       low memory (such as spoolers) should NOT be invoked from ZCOMM unless
  1100.       they are already resident, as memory would become fragmented.
  1101.       Invoking the DOS "print" command (if print isn't already resident) has
  1102.       caused DOS to crash when ZCOMM exits.
  1103.  
  1104.       Memory available for !command will be less than when the command is
  1105.       given directly to DOS without ZCOMM running.  The command "!chkdsk"
  1106.       will display the amount of memory available for subprograms.
  1107.  
  1108.       NOTE: Some commands under some conditions may cause DOS to crash
  1109.       immediately, after more commands are given, or when the user attempts
  1110.       to return to DOS,  especially if insufficient memory is available.
  1111.  
  1112.  
  1113.       __________
  1114.  
  1115.       26. COMSH supports graphic images transmitted by Compuserve's Weather
  1116.           Radar service.
  1117.  
  1118.  
  1119.  
  1120.       (C) 1994 Omen Tech Inc                          Chapter 19 DOS Gateway
  1121.  
  1122.  
  1123.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1124.       ZCOMM User Manual                                                  170
  1125.  
  1126.       The EXEC functions of nonstandard operating systems are notorious
  1127.       sources of interesting debugging experiences.
  1128.  
  1129.  
  1130.       If DOS fails to execute COMMAND.COM, (actually, the program specified
  1131.       in COMSPEC), the message Shell Escape DOS error return = N is
  1132.       displayed.  The usual DOS error returns are 1002,1005,1008,1010, and
  1133.       1011, which are the DOS error return values + 1000:
  1134.  
  1135.       2  File not found (COMMAND.COM)
  1136.  
  1137.       5  Access Denied
  1138.  
  1139.       8  Insufficient memory
  1140.  
  1141.       10 Invalid environment
  1142.  
  1143.       11 Invalid format
  1144.       Return values less than 1000 are returned by the application but are
  1145.       lost by current versions of COMMAND.COM.  The return value is saved in
  1146.       the ?  numeric parameter and may be tested with the ?  test condition.
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.       (C) 1994 Omen Tech Inc       Chapter 19 Protocol File Transfer OPTIONS
  1180.  
  1181.  
  1182.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1183.       ZCOMM User Manual                                                  171
  1184.  
  1185.       20.  Protocol File Transfer OPTIONS
  1186.  
  1187.       Options modify the way the protocol file transfer commands send and
  1188.       receive files.  They are reset before each command line.
  1189.  
  1190.       The a, b, r and rr options are mutually exclusive.  With ZMODEM, a b
  1191.       option given to the sender or receiver will override any a option.
  1192.  
  1193.       The +, c, r, rr, N, n, p, and y options are mutually exclusive.  The Y
  1194.       option may be followed by the c, +, r, n, or N option.  Specifying
  1195.       these options to the receiver overrides the ZMODEM sender's
  1196.       specification of these options.
  1197.  
  1198.       The DOS append command interferes with some of these options.
  1199.  
  1200.  
  1201.       +  When receiving to a file already on disk, append the new data to
  1202.          the file.  If the specified file does not exist, it is created.
  1203.          This option is not allowed if ZCOMM is Restricted.
  1204.  
  1205.          EXAMPLE: rc -+ evrybody.dat
  1206.  
  1207.  
  1208.          When sending files with ZMODEM, the + option commands the receiver
  1209.          to append to a file already on the receiver's disk.
  1210.  
  1211.          EXAMPLE: sz -+ ONAME=master.log *.log sends all .log files in the
  1212.          current directory to be appended to master.log on the receiver's
  1213.          computer.
  1214.  
  1215.          NOTE: Append (+) is not the same as crash recovery (-r).  Append is
  1216.          used to concatenate (add) new data to an existing file.  The
  1217.          resulting file contains both old and new data.
  1218.          NOTE: If an append (+) file transfer is interrupted and restarted,
  1219.          data may be duplicated.
  1220.  
  1221.          SEE ALSO: r option
  1222.  
  1223.       7  Strip data to 7 bits for file transfers with the Kermit protocol.
  1224.          Program executables and other 8 bit binary files cannot be sent
  1225.          this way.  In the absence of the 7 option ZCOMM transfers all 8
  1226.          bits of each byte.  If the communications line is set to 8 bits no
  1227.          parity, the 8th bit is transmitted, otherwise ZCOMM requests 8th
  1228.          bit quoting.  NOTE: The 7 option is distinct from the 7e and 7o
  1229.          term options.
  1230.  
  1231.       a  (ASCII) The a option applies to files received with XMODEM, YMODEM,
  1232.          or ZMODEM protocol.  It converts newlines not preceded by CR to
  1233.          CR/LF pairs.  NULL, RUBOUT, and all characters in each packet
  1234.          beginning with Ctrl-Z are excluded.  The a option is useful when
  1235.          receiving text files without carriage returns directly from Unix
  1236.  
  1237.  
  1238.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1239.  
  1240.  
  1241.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1242.       ZCOMM User Manual                                                  172
  1243.  
  1244.          systems.
  1245.  
  1246.          When sending with ZMODEM, the a option instructs the receiver to
  1247.          convert text files to the conventions used in its operating
  1248.          environment.  When sending to VAX/VMS rz this selects CR carriage
  1249.          control variable length record format.
  1250.  
  1251.          The a option does not apply to the Kermit, sx, or sb commands.
  1252.          Files transferred with the a option cannot be processed with the
  1253.          ZMODEM r (recover/resume) option.
  1254.  
  1255.          EXAMPLE: rc -a program.c receives program.c and converts end of
  1256.          lines to CR/LF.
  1257.  
  1258.  
  1259.       b  (Binary) With ZMODEM, inhibits the receiver from translating the
  1260.          file contents.  If either the ZMODEM sender or receiver specifies b
  1261.          option, any contrary requests will be ignored.
  1262.  
  1263.          EXAMPLE: sz -b program.exe
  1264.  
  1265.  
  1266.       c  With ZMODEM, change the file name to prevent collision if the
  1267.          destination file exists.  The receiving program must support the
  1268.          ZMODEM c option or file disposition will be undefined.  The form of
  1269.          the invented (changed) filename is implementation dependent.
  1270.  
  1271.          Use CRC-16 with the rx, rt, and r7 commands.
  1272.  
  1273.       e  Normally, ZMODEM senders escape XON, XOFF, Ctrl-P, CR-@-CR, and
  1274.          Ctrl-X, and ZMODEM receivers ignore XON and XOFF.  The e option
  1275.          escape all control characters when sending files with the ZMODEM
  1276.          protocol.  In 7-bit environments, the e option also escapes RUBOUT
  1277.          (7F).[1] This option is useful when operating with brain damaged
  1278.          data PBX systems and other types of "front ends".
  1279.  
  1280.          SEE ALSO: zmtxesc, zmrxesc string parameters
  1281.  
  1282.       E  With ZMODEM-90, force 8th bit encoding even if the transmission
  1283.          medium appears to support 8 bits.[2]
  1284.  
  1285.       f  Send the full pathname as specified (exclusive of disk identifier)
  1286.          when using a batch send command.  Normally only the file name
  1287.  
  1288.  
  1289.       __________
  1290.  
  1291.        1. In 7-bit environments, ZMODEM always escapes FF.
  1292.  
  1293.        2. Not featured in DSZ.COM.
  1294.  
  1295.  
  1296.  
  1297.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1298.  
  1299.  
  1300.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1301.       ZCOMM User Manual                                                  173
  1302.  
  1303.          portion (without any directory prefix) is transmitted.  The f
  1304.          option applies to batch file transmission with the kermit sb, sb,
  1305.          send, and sz commands.
  1306.  
  1307.          EXAMPLE: cd /src; sz -f robot/r2d2.h sends the file with the
  1308.          pathname robot/r2d2.h.
  1309.  
  1310.  
  1311.          EXAMPLE: sz -f /src/robot/vox/3tpi0.*
  1312.  
  1313.  
  1314.          SEE ALSO: PREFIX=p flag for the sb and sz commands.
  1315.  
  1316.       F  Insert a pause after each transmitted data subpacket transmitted
  1317.          with ZMODEM.  This is useful in certain situations when
  1318.          conventional flow control methods are unavailable, ineffective, or
  1319.          unreasonably slow (i.e., "broken").  The length of pause is set by
  1320.          the zmodem F numeric parameter.
  1321.  
  1322.          EXAMPLE: sz -F honker.dat
  1323.  
  1324.  
  1325.          SEE ALSO: zmodem F numeric parameter
  1326.  
  1327.       g  Given to the receiving program, the g option to the rb command
  1328.          allows the sender and receiver to dispense with acknowledging each
  1329.          transmitted packet when using YMODEM batch transfers.  YMODEM-g
  1330.          increases throughput when the transmitting medium itself (direct
  1331.          connection, X.PC session, or error correcting modems) provides
  1332.          error free transmission.  The transmitting medium can use XOFF and
  1333.          XON to enforce flow control.
  1334.  
  1335.          If the transmitting medium does not enforce flow control,[3] the
  1336.          user must insure the receiver is not overrun.  ZCOMM on a PC or XT
  1337.          accepts data at 9600 bps without flow control when the file is
  1338.          being written to a hard disk or ramdisk.[4]
  1339.  
  1340.          If an error is detected when the g option is used, the transfer is
  1341.          aborted.
  1342.  
  1343.          EXAMPLE: rb -g
  1344.  
  1345.  
  1346.  
  1347.       __________
  1348.  
  1349.        3. X.PC automatically enforces end to end flow control.
  1350.  
  1351.        4. Provided no memory resident programs or special drivers hog CPU
  1352.           cycles.
  1353.  
  1354.  
  1355.  
  1356.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1357.  
  1358.  
  1359.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1360.       ZCOMM User Manual                                                  174
  1361.  
  1362.          The g option may also be used with the rx command to receive files
  1363.          from Qmodem's G protocol.
  1364.  
  1365.       i  With YMODEM or ZMODEM, instructs the receiver to write file(s) in
  1366.          stream oriented Image format.  When sending to the VAX/VMS version
  1367.          of rz, the i option selects Stream_LF record format.  Stream_LF
  1368.          preserves the exact contents of binary files read by VMS C
  1369.          programs.  Stream_LF is useful for file servers and archives that
  1370.          service PCs, as well as C programs on VMS itself.  (Without the i
  1371.          option, the VMS rz default is 512 byte fixed length record format.)
  1372.  
  1373.       I  With YMODEM or ZMODEM, instructs the receiver to write file(s) in
  1374.          variable length binary record Image format.  When sending to the
  1375.          VAX/VMS version of rz, the i option selects Variable length
  1376.          (mrs=510) binary record format.  Certain programs such as Kermit32
  1377.          understand this binary record format better than Stream_LF.
  1378.  
  1379.       k  Use 1024 byte (1K) packets with the sb and sx commands.  The
  1380.          default packet length is 128.  This increases throughput when the
  1381.          speed is high relative to the response times of the communications
  1382.          channel and the computers.  The k option is useful with 9600 or
  1383.          19200 bps transfers with directly connected timesharing systems.
  1384.          The k option may not work properly uploading to some systems,
  1385.          particularly heavily loaded or poorly implemented timesharing
  1386.          systems at high speeds.  The k option is valid only when sending to
  1387.          ZCOMM, Unix rb, or other compatible programs.  If the file length
  1388.          is not a multiple of 1024, the remainder of the file will be sent
  1389.          with 128 byte blocks.  This option does not affect Kermit
  1390.          transfers.
  1391.  
  1392.          EXAMPLE: sb -k *.c *.h
  1393.  
  1394.          With the sz command, the k option forces an initial 1024 byte
  1395.          subpacket length.
  1396.  
  1397.          EXAMPLE: sz -k *.c *.h
  1398.  
  1399.  
  1400.       K  Use 4096 byte (4k) packets with the sb and sx commands.  The
  1401.          default packet length is 128.  This increases throughput when the
  1402.          speed is high relative to the response times of the communications
  1403.          channel and the computers.  The K option is useful with 9600 or
  1404.          19200 bps transfers with directly connected timesharing systems.
  1405.          The K option may not work properly uploading to some systems,
  1406.          particularly heavily loaded or poorly implemented timesharing
  1407.          systems at high speeds.
  1408.  
  1409.          The K option is valid only when sending to compatible programs.  If
  1410.          the file length is not a multiple of 4096, the remainder of the
  1411.          file will be sent with shorter blocks.  This option is useful when
  1412.          working with non-ZMODEM programs that support the "XMODEM 4k"
  1413.  
  1414.  
  1415.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1416.  
  1417.  
  1418.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1419.       ZCOMM User Manual                                                  175
  1420.  
  1421.          protocol, and for settling arguments.
  1422.  
  1423.          EXAMPLE: sb -K *.c *.h
  1424.  
  1425.  
  1426.       l  Force pathnames that are all uppercase to lower case.  This option
  1427.          is reset by the call command.  This option is ignored on DOS and
  1428.          OS/2 flavors of ZCOMM.
  1429.  
  1430.       m  (ZMODEM-90) Activate MobyTurbo(TM) for maximum throughput on
  1431.          compressed files sent over completely transparent connections.
  1432.          MobyTurbo can be used over links that support YMODEM-g.  MobyTurbo
  1433.          can not be used with most forms of software flow control or over
  1434.          networks that reserve control characters.  The m option can be
  1435.          given to either the sending or receiving ZMODEM-90 program.
  1436.  
  1437.          Likewise MobyKermit(TM) increases the speed of Kermit file
  1438.          transfers.  Unlike ZMODEM, the Kermit m option can only be given to
  1439.          the sending program.  Some Kermit programs do not work with the m
  1440.          option.
  1441.  
  1442.       M  Locks out MobyTurbo even if the other program has given the m
  1443.          option.  This option is useful if the transmission path does not
  1444.          support complete transparency.
  1445.  
  1446.          The Kermit receive M option causes unprefixed control characters to
  1447.          be ignored.  This is useful in certain environments that insert
  1448.          spurious characters into Kermit packets.
  1449.  
  1450.       n  (ZMODEM) Each file is transferred if the corresponding destination
  1451.          file does not exist, or if the source file is newer.  The n option
  1452.          can be given with either the sz or rz commands.  This option is not
  1453.          allowed if the receiver is Restricted.
  1454.  
  1455.          EXAMPLE: sz -n *.* attempts to send all files in the current
  1456.          directory.  Only those files that do not exist in the destination
  1457.          directory, and those for which the source is newer will be sent.
  1458.  
  1459.  
  1460.       N  (ZMODEM) Transfer the file if the corresponding destination file
  1461.          does not exist, or if the source file is newer or longer.  The N
  1462.          option be used with the sz and rz commands.  This option is not
  1463.          allowed if the receiver is Restricted.
  1464.  
  1465.          EXAMPLE: sz -N *.*
  1466.  
  1467.  
  1468.       p  (ZMODEM) Protect destination file; bypass this file if it already
  1469.          exists on the destination system.
  1470.  
  1471.  
  1472.  
  1473.  
  1474.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1475.  
  1476.  
  1477.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1478.       ZCOMM User Manual                                                  176
  1479.  
  1480.       P  (ZMODEM-90) When transferring files over 7 bit paths, pack 4 8-bit
  1481.          bytes into 5 7-bit bytes for transmission instead of quoting the
  1482.          8th bit.[5] This increases transmission speed on compressed files.
  1483.  
  1484.       q  (Quiet) suppresses block by block status line update during Kermit
  1485.          and X/YMODEM file transfers.  Also prevents skipped files from
  1486.          incrementing the e numeric parameter and e test condition.
  1487.  
  1488.       r  (ZMODEM) Resume/Recover an interrupted file transfer with the
  1489.          ZMODEM protocol.  May be given with either the sz or rz commands.
  1490.  
  1491.          The r option may be used to resume the transmission of a long file
  1492.          after a disconnect or power loss, without having to start over at
  1493.          the beginning of the file.  The r option may also be used when the
  1494.          source file grows from time to time and only the incremental
  1495.          portion needs to be sent.  The r option assumes that the contents
  1496.          of the destination file are identical to the corresponding
  1497.          beginning portion of the source file.  The r option should not be
  1498.          applied to a file that has been modified by the a option.  This
  1499.          option is not allowed if the receiver is Restricted.
  1500.  
  1501.          EXAMPLE: sz -r hugefile.lst
  1502.  
  1503.  
  1504.          SEE ALSO: zmodem c numeric parameter
  1505.  
  1506.          For convenience, the r option can be specified on all files if
  1507.          desired, even those that have not been interrupted during a
  1508.          transfer.  However, if you do make the r option the default with
  1509.          adlopts  you could inadvertently overwrite valuable data with
  1510.          unrelated data from a random file with the same file name.
  1511.  
  1512.          The "ZMODEM Crash Recovery at NNNN" message may not appear when
  1513.          performing Crash Recovery on very short files.
  1514.  
  1515.       rr As above, but the files are compared by taking a 32 bit CRC on the
  1516.          contents before deciding on whether to start a fresh transfer.
  1517.  
  1518.          EXAMPLE: sz -rr maybenewer.lst
  1519.  
  1520.  
  1521.          With the -rr option, all of the files are compared or transmitted
  1522.          by default.  The number of bytes used in the comparison may be
  1523.          restricted by setting the zmodem R numeric parameter to a number
  1524.          between 2048 and 32000 (1 billion on 32 bit flavors).
  1525.  
  1526.  
  1527.       __________
  1528.  
  1529.        5. Not supported in DSZ.COM.
  1530.  
  1531.  
  1532.  
  1533.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1534.  
  1535.  
  1536.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1537.       ZCOMM User Manual                                                  177
  1538.  
  1539.          EXAMPLE: zmodem pR20000
  1540.  
  1541.  
  1542.       R  Recursively descend directories specified in wild cards when
  1543.          expanding file names.
  1544.  
  1545.          EXAMPLE: sz -Rf src
  1546.          Sends the files in the src directory and its subdirectories (R
  1547.          option), and transmits the full relative pathname (f option).
  1548.  
  1549.          Generally, the f option is used whenever the R option is used.
  1550.  
  1551.          SEE ALSO: f option
  1552.  
  1553.       s  SlugBait modifies the logic of ZMODEM sending to detect and report
  1554.          attempts at evading accountability for receiving files.  Such
  1555.          attempts are flagged with a Q status in the log of sent files.
  1556.          SlugBait adds a slight delay to file transmission, and a transfer
  1557.          that is cut off at the very end of file may very infrequently be
  1558.          reported with Questionable instead of ERROR status.
  1559.  
  1560.       S  When sending file(s) with ZMODEM, interrogate the receiving program
  1561.          for its serial number.  S option terminates when a serial number is
  1562.          received or when the call command is given.  Receiving file(s) with
  1563.          YMODEM or ZMODEM from programs providing a serial number also
  1564.          provides the other program's serial number.  The serial number
  1565.          received is listed by the performance log.
  1566.  
  1567.       t  Enter the term function after file transfer(s) complete.  The t
  1568.          option should not be used in commands given from within the term
  1569.          function, either directly or with soft key definitions.
  1570.  
  1571.       u  Unlink (remove, delete) the file after it has been sent with the sz
  1572.          command.  Users should not manually skip or abort transfers when
  1573.          this option is used.
  1574.  
  1575.       v  View the data being transmitted or received.  Only correct data is
  1576.          displayed.  Viewing standard ASCII files does not interfere with
  1577.          correct transmission at high speeds, although throughput may be
  1578.          degraded.
  1579.  
  1580.          The output may be redirected to a capture file or DOS device with
  1581.          the > or >> command.  Unless output is redirected, this option must
  1582.          not be used when ZCOMM is in Host Operation.
  1583.  
  1584.          When invoking Unix ZCOMM as xyam, rz, sz, rb, sb, rx, or sx,
  1585.          creates a logging file with information useful for debugging
  1586.          purposes.  More v's create more detailed debugging information.
  1587.  
  1588.          SEE ALSO: v numeric parameter, LOGFILE environment variable
  1589.  
  1590.  
  1591.  
  1592.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1593.  
  1594.  
  1595.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1596.       ZCOMM User Manual                                                  178
  1597.  
  1598.       wN Use a window size of N bytes with the sz command, overriding the
  1599.          zmodem w numeric parameter.  If N is missing, use a ZMODEM window
  1600.          size of 4096 bytes.
  1601.  
  1602.          SEE ALSO: Flow Control Chapter 14, zmodem w numeric parameter
  1603.  
  1604.       WN Request the sending program to use a window size of N bytes,
  1605.          overriding the sender's window size setting, 4096 bytes if N is
  1606.          missing.[6]
  1607.  
  1608.       y  Yes it is OK to replace a file already on disk when receiving a
  1609.          file.  If absent, the operator is given a choice of appending to
  1610.          the current file (a), erasing it (y) or aborting (n).  This option
  1611.          is not allowed if ZCOMM is Restricted.  When sending with ZMODEM,
  1612.          commands the receiver to replace a file on its disk.
  1613.  
  1614.       Y  (ZMODEM) Transfer only those files for which a file with the same
  1615.          pathname exists at the destination, overwriting the destination
  1616.          files.  The Y option may be followed by other ZMODEM options to
  1617.          further qualify the selection of files to transfer.  This option is
  1618.          not allowed if ZCOMM is Restricted.
  1619.  
  1620.          EXAMPLE: sz -Yn *.* If the source directory contains files A, B,
  1621.          and C, each dated today, and the destination directory contains B
  1622.          and C, with B a week old and C dated today, only B will be sent.
  1623.  
  1624.  
  1625.       zT Use T minutes behind GMT (Greenwich Mean Time) as the local
  1626.          timezone instead of the z parameter value for the file(s)
  1627.          transferred with this command.
  1628.  
  1629.          EXAMPLE: sb -k -z300 ESTfile sends ESTfile corrected for creation
  1630.          in Eastern Standard Time.
  1631.  
  1632.  
  1633.       Z  Transmit files with compression.  The ZMODEM receiver must indicate
  1634.          its ability to decompress received files for this option to take
  1635.          effect.
  1636.  
  1637.          When sending between Unix systems, files are compressed with 12 bit
  1638.          Lempel-Ziv compression.  Otherwise, packets are transmitted with
  1639.          Run Length Encoding.
  1640.  
  1641.          Over slow channels, compression increases the transmission speed of
  1642.  
  1643.  
  1644.       __________
  1645.  
  1646.        6. The W option is supported when receiving files from ZMODEM-90(TM)
  1647.           program versions after Jan 21 1990.
  1648.  
  1649.  
  1650.  
  1651.       (C) 1994 Omen Tech Inc       Chapter 20 Protocol File Transfer OPTIONS
  1652.  
  1653.  
  1654.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1655.       ZCOMM User Manual                                                  179
  1656.  
  1657.          compiler listings, screen dumps, etc. by up to 50 per cent.  LZW
  1658.          compression is more effective on more types of data than RLE
  1659.          compression.  Some files, including the Personal Computing Magazine
  1660.          ASCII Test File, speed up by more than an order of magnitude with
  1661.          either RLE or LZW compression.  Heavily encrypted data and
  1662.          compressed files, including ARC and ZOO archives, do not benefit
  1663.          from ZMODEM compression.
  1664.  
  1665.          The situation with fast compressed modems is more complex.  The
  1666.          benefits of ZMODEM compression will depend on the particular
  1667.          application; try the transfers with and without ZMODEM compression
  1668.          to determine the most efficient options.
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.       (C) 1994 Omen Tech Inc                        Chapter 20 Term Function
  1711.  
  1712.  
  1713.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1714.       ZCOMM User Manual                                                  180
  1715.  
  1716.       21.  TERM FUNCTION
  1717.  
  1718.       Interactive conversation with the remote is controlled by the term
  1719.       function.  The term function provides the conversational link between
  1720.       the keyboard, display, printer, and the remote computer.  ZCOMM's term
  1721.       function also controls the capture of data from the remote, "non-
  1722.       protocol" sending of files and commands, and recognition of the
  1723.       remote's responses (pattern searches).
  1724.  
  1725.       The term function is entered by the F2, f, put, putw, t and wait
  1726.       commands, and by the rx and sx commands when the t term option is
  1727.       used.
  1728.  
  1729.       The term function receives characters from the remote computer.
  1730.       Received characters are displayed on the screen, printed, searched, or
  1731.       trigger Kermit and ZMODEM AutoDownloads(TM).
  1732.  
  1733.       By default, the parity bit is stripped.  This provides intelligible
  1734.       output talking to a wide variety of systems.  If you need to display
  1735.       the IBM ling drawing characters or BBS graphics, you must use the 8g
  1736.       term option.
  1737.  
  1738.       EXAMPLE: t -8g
  1739.  
  1740.       Once you are online, the 8g term option can be selected by toggling
  1741.       parity with the ALT-P key described below.
  1742.  
  1743.       Normally, the term function acts upon keyboarded characters
  1744.       immediately.  If the term function is sending a string with the put or
  1745.       putw commands, or if the keyboard has been locked with the kbdlock
  1746.       command, keystrokes are not drained from the keyboard buffer.  If ANSI
  1747.       KAM (Keyboard Action Mode) escape sequence has been received,
  1748.       keystrokes are discarded with a bleep of the bell.
  1749.  
  1750.       Normal ASCII printing and control characters are sent to the remote.
  1751.       Some keys may be redefined with the set command.  NUKE (ALT-N) returns
  1752.       control to the main command prompt.  The term function returns to its
  1753.       caller when an F1 or ALT-X key is struck.
  1754.  
  1755.       A carrier detect loss during a pattern search or a satisfied search[1]
  1756.       cause the term function to return.  Counting the error count (e
  1757.       numeric parameter) UP TO 0 makes the term function return.  An ETX or
  1758.       EOT received from the remote when q term option is on also does the
  1759.       trick.  Finally, an EOF on a file uploaded with x term option, or a
  1760.       match on a file uploaded with X term option makes the term function
  1761.  
  1762.  
  1763.       __________
  1764.  
  1765.        1. Unless the c modifier was used
  1766.  
  1767.  
  1768.  
  1769.       (C) 1994 Omen Tech Inc                        Chapter 21 Term Function
  1770.  
  1771.