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

  1.  
  2.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  3.       ZCOMM User Manual                                                   91
  4.  
  5.       COMSPEC ZCOMM uses the DOS COMSPEC environment variable to load
  6.             COMMAND.COM or similar program to parse and execute DOS gateways
  7.             (shell escapes).  Normally DOS sets this variable for you.
  8.  
  9.       DIRRX, DIRSX, DIRCX, DIRPX, DIRFX Contain optional receive (DIRRX),
  10.             send (DIRSX), capture (DIRCX), paste (DIRPX), and file (DIRFX)
  11.             directory presets.  When ZCOMM starts, these environment
  12.             variables preset the dirrx, dirsx, dircx, dirpx and dirfx string
  13.             variables respectively.[1]
  14.  
  15.       DIRSIZE controls the number of directory items that may be sorted with
  16.             each wildcard.  It should be set to 23 * times the desired
  17.             number of entries (default = 200).  If more directory entries
  18.             are encountered, they are processed without sorting.
  19.  
  20.             EXAMPLE: C>set DIRSIZE=8000
  21.  
  22.  
  23.       DPORT overrides the default modem port (COM1) initially accessed by
  24.             ZCOMM.
  25.  
  26.             EXAMPLE: C>set DPORT=2
  27.  
  28.             The DPORT environment variable can also be specified as a hex
  29.             port address,vector number pair.
  30.  
  31.             EXAMPLE: C>set DPORT=2f8,5
  32.  
  33.  
  34.             SEE ALSO: portx command
  35.  
  36.       EGA   Stting this to MONO causes ZCOMM to use video mode 7 for 80x25
  37.             column text instead of the default video mode 3.  This is needed
  38.             only when using some EGA cards with an Monochrome MDA compatible
  39.             monitor.
  40.  
  41.             EXAMPLE: C>set EGA=MONO
  42.  
  43.  
  44.       HOTPORT Suppresses the "Warning: Old dport=" message (q.v.) seen when
  45.             Zcomm is called from certain operating systems or programs.
  46.  
  47.             EXAMPLE: C>set HOTPORT=1
  48.  
  49.  
  50.  
  51.  
  52.       __________
  53.  
  54.        1. Or, these may be set in your phones.t or phones.ts file.
  55.  
  56.  
  57.  
  58.       (C) 1994 Omen Tech Inc                       Chapter 16 Running ZCOMM
  59.  
  60.  
  61.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  62.       ZCOMM User Manual                                                   92
  63.  
  64.             SEE ALSO: port, portx commands
  65.  
  66.       MODEM Selects the dialer script file appropriate to your modem.  This
  67.             may also be set in your phones.t or phones.ts file.  See Chapter
  68.             8 for details.
  69.  
  70.             EXAMPLE: C>set MODEM=mm224e.t
  71.  
  72.  
  73.       PATH  must include the directories containing ZCOMM and the help
  74.             processor YHP.
  75.  
  76.       PHONES overrides the default pathname used to fetch ZCOMM's telephone
  77.             directory.  Forward slashes should be used to indicate
  78.             directories.
  79.  
  80.             EXAMPLE: C>set PHONES=c:/yam/phones.t
  81.  
  82.  
  83.       YAMQUIET Inhibits the display and locks the keyboard, preventing ZCOMM
  84.             from writing on the screen. * This is useful when calling ZCOMM
  85.             from another program.
  86.  
  87.             EXAMPLE: C>set YAMQUIET=257 Performs the equivalent of an
  88.             initial kbdlock 257 command.
  89.  
  90.  
  91.             SEE ALSO: kbdlock command
  92.  
  93.       ZONE  sets the z numeric parameter to the number of minutes the
  94.             current local time lags GMT time.
  95.  
  96.             EXAMPLE: C>set ZONE=420
  97.  
  98.  
  99.             SEE ALSO: z numeric parameter
  100.       This may also be set in your phones.t or phones.ts file.
  101.  
  102.       Before running the X.PC* version of Pro-YAM, you must run the Tymnet
  103.       X.PC driver to make it resident by calling the driver from DOS.  The
  104.       driver announces itself and returns control to DOS.  The Tymnet X.PC
  105.       driver uses approximately 40kb memory.
  106.  
  107.       EXAMPLE: xpcmain
  108.  
  109.  
  110.  
  111.       16.1.2  Help Processor Environment Variables  The flash-up help
  112.       processor program YHP examines the environment for the NORMATTR,
  113.       REVATTR, and UNDLATTR variables.  These set help screen parameters for
  114.       normal, reverse video, and underline attributes corresponding to the
  115.  
  116.  
  117.       (C) 1994 Omen Tech Inc                       Chapter 16 Running ZCOMM
  118.  
  119.  
  120.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  121.       ZCOMM User Manual                                                   93
  122.  
  123.       n,r, and u numeric parameters.
  124.  
  125.       EXAMPLE: C>set NORMATTR=3
  126.  
  127.  
  128.  
  129.       16.2  Dialing out from Unix
  130.  
  131.       ZCOMM is called from Unix as [DPORT=S] yam [command ...]
  132.       DPORT=S is an optional override to the initial default serial line.
  133.  
  134.       If another program is using the line, ZCOMM complains that the port is
  135.       busy and will refuse to open it.
  136.  
  137.       Command may be any desired combination of ZCOMM commands.
  138.  
  139.       EXAMPLE: yam call cissig invokes ZCOMM and executes the commands in
  140.       the "cissig" telephone directory entry.[2]
  141.  
  142.  
  143.       EXAMPLE: DPORT=tty77 yam call othersys
  144.       Selects /dev/tty77 before executing the othersys telephone directory
  145.       entry.
  146.  
  147.  
  148.       If ZCOMM is run in the background, it will exit if it reaches the main
  149.       command prompt.
  150.  
  151.       EXAMPLE: yam call cissig&
  152.  
  153.  
  154.       As a form of shorthand, ZCOMM may be invoked as call if that is the
  155.       command to be executed.
  156.  
  157.       EXAMPLE: call cissig
  158.  
  159.  
  160.  
  161.       16.2.1  X Windows  When run under the X Windows xterm(1) interface
  162.       program (indicated by the Unix TERM environment variable), ZCOMM
  163.       understands xterm's keyboard mappings for function and ALT keys.
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.       __________
  171.  
  172.        2. The cissig and allsig entries are in the phones2.t file.
  173.  
  174.  
  175.  
  176.       (C) 1994 Omen Tech Inc                       Chapter 16 Running ZCOMM
  177.  
  178.  
  179.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  180.       ZCOMM User Manual                                                   94
  181.  
  182.       16.2.2  UNIX/XENIX Environment Variables  Unix/Xenix ZCOMM flavors
  183.       search the Environment for the following variables:
  184.  
  185.       CBSIZE overrides the default allocation for the circular buffer.  On
  186.             32 bit systems, the maximum CBSIZE is limited only by the
  187.             operating system's process size limit.
  188.  
  189.             EXAMPLE: CBSIZE=300000; export CBSIZE
  190.  
  191.  
  192.       DIRRX, DIRSX, DIRCX, DIRPX, DIRFX Perform the same function as
  193.             described for the DOS flavor above.  (Since Unix does not use
  194.             colon (:) as a device specifier, Unix flavors do not treat
  195.             colon(s) in pathnames in any special way.)
  196.  
  197.       DPORT overrides the default modem port initially accessed by ZCOMM.
  198.  
  199.             EXAMPLE: DPORT=tty12; export DPORT
  200.  
  201.  
  202.       HZ    Indicates the number of kernel "clock ticks" per second.  This
  203.             calibrates terminal function timeouts, protocol timeouts, and
  204.             the sleep command.  The HZ environment variable must be set if
  205.             the value used by your system is not 100 clock ticks per second.
  206.  
  207.       LOGFILE Specifies the pathname for the log file (default:
  208.             /tmp/yamlog.tmp) created by the -v option when invoking ZCOMM as
  209.             xyam, rz, sz, rb, sb, rx, or sx.
  210.  
  211.             SEE ALSO: v option
  212.  
  213.       MODEM Describes the type of modem used by the mm224 script.  See
  214.             Chapter 8 for details.
  215.  
  216.             EXAMPLE: MODEM=MM224E; export MODEM
  217.  
  218.  
  219.       PATH  must include the directories containing yam and the help
  220.             processor yhp.
  221.  
  222.       PHONES overrides the default pathname used to fetch ZCOMM's telephone
  223.             directory.
  224.  
  225.             EXAMPLE: PHONES=/usr/lib/local/localphone.t; export PHONES
  226.  
  227.  
  228.       SHELL ZCOMM uses this environment variable to select the appropriate
  229.             program for its shell escapes.
  230.  
  231.       TERM  If the TERM environment variable contains xterm, xterms or
  232.             anything else beginning with xterm, ZCOMM assumes it is
  233.  
  234.  
  235.       (C) 1994 Omen Tech Inc                       Chapter 16 Running ZCOMM
  236.  
  237.  
  238.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  239.       ZCOMM User Manual                                                   95
  240.  
  241.             operating as a subprocess to the Xwindows xterm(1) program,
  242.             enabling a term function status line if the X numeric parameter
  243.             allows.
  244.  
  245.             SEE ALSO: X numeric parameter The LINES and COLUMNS environment
  246.             variables preset the # and $ numeric parameters respectively.
  247.             This assumption may be overridden by setting the X numeric
  248.             parameter.
  249.  
  250.             If the TERM environment parameter contains the string 401
  251.             indicating emulation of a Tektronix 4010 series storage tube
  252.             terminal, status line updates are inhibited when Tek graphics is
  253.             active.
  254.  
  255.             If the TERM environment parameter begins with "wy" (as in
  256.             "wy60") ZCOMM will use and recognize Wyse escape sequences.  The
  257.             TERM environment variable is also checked for AT386 which
  258.             enables a different decoding of keyboard escape sequences.
  259.  
  260.       UUCPLOCK If UUCPLOCK contains "/usr/spool/locks/LCK.." ZCOMM uses
  261.             "Honey Danber" uucp port arbitration conventions.
  262.  
  263.  
  264.       16.3  Dialing in to Unix
  265.  
  266.       Unix flavors may be used for dial-in applications to transfer files
  267.       and commands with programs logged in to terminal ports.  The commands
  268.       rz, sz, rb, sb, rx, rc, sx, zcommand, and zcommandi perform the same
  269.       functions as the corresponding ZCOMM commands.  They may be given
  270.       directly to the shell or executed from a shell script or Makefile.
  271.  
  272.       EXAMPLE: sz -Yn *.c *.h
  273.  
  274.  
  275.       The Makefile fragment below commands a DOS ZCOMM logged into a serial
  276.       port to clear its dirrx string parameter, change to its root
  277.       directory, and then sends a new version of the executable to the DOS
  278.       machine.
  279.  
  280.       EXAMPLE: cpsz:/tmp/yam.exe
  281.                       @zcommand 'set dirrx ""'
  282.                       @zcommand "c:;cd /"
  283.                       @sz -y /tmp/yam.exe
  284.  
  285.  
  286.       More general command sequences or other protocols such as Kermit may
  287.       be accessed with the xyam command.
  288.  
  289.       EXAMPLE: xyam kermit sb *.c *.h
  290.  
  291.  
  292.  
  293.  
  294.       (C) 1994 Omen Tech Inc                       Chapter 16 Running ZCOMM
  295.  
  296.  
  297.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  298.       ZCOMM User Manual                                                   96
  299.  
  300.       EXAMPLE: xyam z pl256 sz -Yn *.c *.h
  301.  
  302.  
  303.       If a many files are specified with wild cards, the shell may not be
  304.       able to pass them to ZCOMM.  The following error will appear:
  305.       /usr/bin/sz: arg list too long
  306.       ZCOMM users can avoid this problem by letting ZCOMM do the wild card
  307.       expansion internally.
  308.  
  309.       EXAMPLE: sz '*'
  310.  
  311.  
  312.       16.3.1  Initialized Logins  When a user logs in, the Unix shell
  313.       executes commands in .profile in the user's home directory.  This can
  314.       be used to accept file(s) from callers, send file(s), perform suitable
  315.       processing, and log out the user automatically.
  316.  
  317.       The following .profile disables hangup and interrupt signals, then
  318.       invokes xyam to execute commands in a script.
  319.  
  320.       set -e
  321.       trap "" 1 2 3
  322.       xyam source inbound.t
  323.       exit
  324.  
  325.       The following inbound.t receives a file from a hand held aviation
  326.       recorder.
  327.  
  328.                       echo "Send XMODEM file"
  329.                       ena -d
  330.                       rx -y airlink.tmp
  331.                       if ? echo "File Received"
  332.                       if !? echo "Sorry."
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.       (C) 1994 Omen Tech Inc                     Chapter 16 Commands Outline
  354.  
  355.  
  356.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  357.       ZCOMM User Manual                                                   97
  358.  
  359.       17.  OUTLINE OF COMMANDS
  360.  
  361.  
  362.  
  363.       17.1  Setup
  364.  
  365.       port 1 ..........................Select the modem port
  366.       portx hbase,vec .................Select non standard modem
  367.       speed 1200 ......................Set the "baud rate"
  368.       handshake {on|off|cts|dsr|dcd|both|slow}Hardware flow control
  369.  
  370.  
  371.       17.2  Data Call
  372.  
  373.       queue............................Manipulate a dialing queue
  374.       call [-N] system ................[N retries]
  375.       234-5678 ........................Dial a local number
  376.       234-5678/mnp ....................Dial a local number with MNP
  377.       %l-503-621-3746 .................Dial long distance
  378.       learn lfile .....................TurboLearn information to lfile
  379.       xpc C ... .......................Enable and control virtual channels
  380.       with X.PC
  381.       bye .............................Disconnect current call
  382.       off .............................Disconnect and exit
  383.       String parameters: phones, mcommand, mprefix, msuffix, mconnect
  384.  
  385.  
  386.       17.3  Interactive Operation
  387.  
  388.       F2, t [-options] ................Begin terminal conversation
  389.       learn lfile .....................TurboLearn information to lfile
  390.       conf ............................Online conference with edit window
  391.       F8 ..............................Generate a password
  392.       enable -options .................Modify term function characteristics
  393.       history histfile.................Enable command recall history
  394.       set .............................Assigns a string or command to a
  395.       function key
  396.       String parameters: break, bs, esc, etx, xpassword, entstr, lpnono
  397.  
  398.  
  399.       17.4  Message Transfer Commands
  400.  
  401.                            Normal Interactive Transfers
  402.       f [-options] file ...............Send file with the term function
  403.       t [-options] file ...............Terminal conversation with capture to
  404.       file
  405.       kill ............................Erase the contents of the circular
  406.       buffer
  407.       w, ALT-W ........................Write the circular buffer
  408.       close, ALT-C ....................Close the capture file
  409.       Term Function Options ...........(capture/send modifiers)
  410.  
  411.  
  412.       (C) 1994 Omen Tech Inc                     Chapter 17 Commands Outline
  413.  
  414.  
  415.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  416.       ZCOMM User Manual                                                   98
  417.  
  418.       String parameters: eolstr, blankfill
  419.                               Special File Transfers
  420.       fput ............................High Speed file dump to modem
  421.       fpute ...........................Send file with Echoplex check
  422.       fget ............................High speed modem to disk data dump
  423.  
  424.  
  425.       17.5  Protocol File Transfer Commands
  426.  
  427.       F3, rb [-options] [dir] [file ...] Receive files with YMODEM or Clink
  428.       rz [-options] [dir] [file ...] ..Receive files with ZMODEM
  429.       kermit rb [-options] ............Receive files with Kermit
  430.       rx [-options] rxfile ............Receive a file with XMODEM
  431.       rt [-options] [dir] [file ...] ..Receive files with Telink/FIDO
  432.       r7 [-options] [dir] [file ...] ..Receive files with MODEM7
  433.       ro [-options] rxfile ............Receive a file with XMODEM
  434.       OverThruster
  435.       rw [-options] rxfile ............Receive a file with WXMODEM
  436.       rc [-options] rxfile ............Receive a file with XMODEM/CRC
  437.       sz [-options] txfile ... ........Send file(s) with ZMODEM
  438.       sb [-options] txfile ... ........Send file(s) with YMODEM or Clink
  439.       sx [-options] txfile ............Send a file with XMODEM or XMODEM/CRC
  440.       st [-options] txfile ... ........Send file(s) with Telink/FIDO
  441.       s7 [-options] txfile ... ........Send file(s) with MODEM7
  442.       zcommand COMMAND ................Remote COMMAND with ZMODEM
  443.       !!COMMAND........................Remote COMMAND with Kermit or ZMODEM
  444.       kermit sb [-options] txfile ... .Send file(s) with Kermit
  445.       Kermit Server Access Commands
  446.       AUTOMATIC File Transfers.........(Compuserve-B, Kermit, ZMODEM)
  447.       String parameters: adlopts
  448.       Options for Protocol File Transfers
  449.       Numeric Parameters for XMODEM/YMODEM/ZMODEM Transfers
  450.       Special Keys for Protocol Transfers
  451.  
  452.       17.6  Macro Commands
  453.  
  454.       call system .....................Execute telephone directory entry
  455.       r [oldcmd] ......................Reenter previous command
  456.       Up, Down ........................Select previous commands for reentry
  457.       source scriptfile ...............Call subroutine
  458.       set .............................Assign a string or command to a
  459.       function key
  460.       keys ............................Display soft key definitions
  461.       reskeys .........................Clear soft key definitions
  462.       SOFT KEYS .......................Transmit strings or execute commands.
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.       (C) 1994 Omen Tech Inc                     Chapter 17 Commands Outline
  472.  
  473.  
  474.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  475.       ZCOMM User Manual                                                   99
  476.  
  477.       17.7  Display Commands / Terminal Emulation
  478.  
  479.       display displaymodes ............Set CRT parameters, screen emulation
  480.       cl, cls .........................Clear the Screen
  481.       mk...............................Map keys for terminal emulation
  482.       videobios N .....................Set video BIOS mode N (for 132 cols)
  483.  
  484.  
  485.       17.8  Disk/File Access Commands
  486.  
  487.       a: ..............................Change default disk
  488.       ap file1 file2 ..................Append file1 to file2
  489.       apd file1 file2 .................Append file1 to file2, delete file1
  490.       cd directory ....................Change directory
  491.       cdd D:dir .......................Change disk and directory
  492.       dir[rlstx] ......................Sorted directory listings
  493.       !DOS-command ....................DOS Gateway to another program
  494.       browse file .....................Browse a set of files
  495.       crc file ... ....................Display 32 bit file CRC's
  496.       del file ........................Delete files from disk
  497.       dump file ... ...................Side by Side HEX/ASCII file dump
  498.       egrep regular-expression file ... Pattern matching file searching
  499.       egrepq regular-expression file ... String extraction
  500.       find string file ... ............Case insensitive file searching
  501.       findq string file ... ...........String extraction
  502.       list file ... ...................List files on DOS standard output
  503.       page file ... ...................Pauses after each screenful
  504.       read file .......................Fill circular buffer from open file
  505.       seek [-]offset ..................Seek to location in file
  506.       Home, End, PgUp .................Enter review function
  507.       sum file ... ....................Display Unix style file checksum
  508.       typ file ... ....................Type (display) files on screen
  509.       wc file ... .....................File character, word, line count
  510.       <file ...........................Simulate keyboard input from file
  511.       >outfile ........................Redirect utility command output
  512.       >>file ..........................Add utility command output to file
  513.  
  514.  
  515.       17.9  Remote Takeover / Control
  516.  
  517.       host ............................Enter Host Operation
  518.       link ............................Connect to another computer
  519.       message .........................Leave a public message
  520.       private .........................Leave a private message
  521.       remote ..........................Accept remote commands
  522.       unrestrict.......................Allow caller unrestricted access
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.       (C) 1994 Omen Tech Inc                     Chapter 17 Commands Outline
  531.  
  532.  
  533.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  534.       ZCOMM User Manual                                                  100
  535.  
  536.       17.10  Support Commands
  537.  
  538.       bdump file ......................Dump interrupt input buffer to file
  539.       display displaymodes ............List or change CRT operation
  540.       enable -options..................Modify term function operation
  541.       exit ............................Exit to DOS
  542.       help ............................Activate help database
  543.       kbdlock on|off ..................Lock/Unlock keyboard
  544.       kbdmon [file] ...................Monitor keystrokes in file
  545.       p ...............................Set/display numeric parameters
  546.       reset............................Reset display and disk system
  547.       set .............................Set string parameters / soft keys
  548.  
  549.  
  550.       17.11  Record Keeping Commands
  551.  
  552.       nolog ...........................Inhibit next log entry
  553.       timestamp .......................Display/write time and other info
  554.       restime .........................Reset elapsed time counter to 0
  555.       String parameters: calllog, txlog, rxlog, plog, rxcnt
  556.  
  557.  
  558.       17.12  Script Commands
  559.  
  560.       abort ...........................Returns to command prompt
  561.       accept ..........................Read keyboard response to string
  562.       variable
  563.       bg...............................Indicate background operation
  564.       createx file ....................Exclusive file creation (for
  565.       semaphores)
  566.       echo ............................Display message
  567.       fg...............................Indicate foreground operation
  568.       kill [-signum] procnum ..........Interprocess communications
  569.       lput string .....................Local screen write
  570.       lputp string ....................Output string to printer
  571.       expand script pathspec ..........Execute script for each file in
  572.       pathspec
  573.       fail ............................Failure return from script
  574.       gosub name[.file] ...............Script subroutine call
  575.       goto ............................Branch to label in same script.
  576.       grab svar .......................Read line from file to string
  577.       variable
  578.       if, else.........................Execute rest of line conditionally
  579.       kbdlock on|off ..................Lock/Unlock keyboard
  580.       ki ..............................Reset capture buffer search area
  581.       on ..............................Conditional execution, tested after
  582.       each command
  583.       pattern .........................Specify string searches in modem data
  584.       purge{k|l} ......................Purge typeahead or modem input buffer
  585.       put[v] ..........................Send string [variable] to modem
  586.       return...........................Return to previous script level
  587.  
  588.  
  589.       (C) 1994 Omen Tech Inc                     Chapter 17 Commands Outline
  590.  
  591.  
  592.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  593.       ZCOMM User Manual                                                  101
  594.  
  595.       set[c|s] ........................Set string parameters / soft keys
  596.       setn ............................Set string param to Arithmetic
  597.       expression
  598.       set? ............................Set string param to test value
  599.       sleep ...........................Let the world pass by
  600.       source scriptfile ...............Call scriptfile as a subroutine
  601.       split ...........................Split (parse) a string to tokens
  602.       ss ..............................Regular Expression pattern match
  603.       string parse
  604.       trs .............................Translate characters in a string
  605.       wait ............................Wait for pattern(s) in modem data
  606.       while ...........................Looping control
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.       (C) 1994 Omen Tech Inc                         Chapter 17 Special Keys
  649.  
  650.  
  651.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  652.       ZCOMM User Manual                                                  102
  653.  
  654.       18.  SPECIAL KEYS
  655.  
  656.       Ctrl-Break clears typeahead, unlocks the keyboard, and stops the
  657.       function ZCOMM is doing in a reasonably orderly manner.[1] Ctrl-Break
  658.       cancels kbdlock.  Ctrl-Break is not so abrupt as the NUKE key.  The B
  659.       test condition tests whether Ctrl-Break has been struck since the last
  660.       purgek command.
  661.  
  662.       Keyboarding ALT-N will NUKE (abort) the current command and return to
  663.       ZCOMM's command prompt.[2] If one or more scripts are active, the
  664.       current line number (counting from the first line in the script file)
  665.       for each level of script is displayed.* NUKE will terminate any
  666.       script.  NUKE closes any transmit file, but not a receive capture
  667.       file.  (A receive capture file may be closed with the "close"
  668.       command.) NUKE does not disconnect the modem by dropping DTR.[3]
  669.  
  670.       Keyboarding ALT-Z appends the contents of the display screen to a DOS
  671.       file.  The pathname is contained in the picture string parameter.  The
  672.       exact contents of the screen memory are written to the file, with each
  673.       screen character followed by its attribute.  A separate program, unpic
  674.       is used to convert the screen dump to a normal file that may be
  675.       printed or displayed.
  676.  
  677.       SEE ALSO: picture string parameter, unpic program
  678.  
  679.  
  680.       18.1  Special Keys during Protocol Transfers
  681.  
  682.       Certain keys perform special functions when keyboarded during protocol
  683.       file transfers (XMODEM, Kermit, etc.).  Some of these keys are
  684.       inhibited when a non error correcting protocol (YMODEM-g) is active.
  685.  
  686.       F1  Keyboarding F1 causes a protocol timeout and forces a retry.
  687.  
  688.       ALT-A Displays Kermit file transfer status.
  689.  
  690.       ALT-B Cancels the current Kermit or ZMODEM batch transfer.
  691.  
  692.  
  693.  
  694.       __________
  695.  
  696.        1. In the term function, Ctrl-Break sends a break to the remote
  697.           unless it has been redefined with a set command.
  698.  
  699.        2. Use of this term, popularized in the J.F.K. administration, does
  700.           not imply endorsement of preemptive nuclear attacks on innocent
  701.           populations.
  702.  
  703.        3. When in host operation waiting for a call, NUKE drops DTR.
  704.  
  705.  
  706.  
  707.       (C) 1994 Omen Tech Inc                         Chapter 18 Special Keys
  708.  
  709.  
  710.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  711.       ZCOMM User Manual                                                  103
  712.  
  713.       ALT-C Cancels the ZMODEM or Kermit session.
  714.  
  715.       ALT-F Skips the current ZMODEM or Kermit file transfer.
  716.  
  717.           SEE ALSO: zmodem w numeric parameter
  718.  
  719.       ALT-Q Keyboarding Alt-Q during a protocol file transfer toggles a flag
  720.           that causes ZCOMM to disconnect when the transfer is completed.
  721.           This is most useful when downloading a long file.  As soon as the
  722.           file is transferred, ZCOMM will execute the string parameter
  723.           quitcmd (if set) and then disconnect the modem.  If keyboarded
  724.           during a Host Operation file transfer, ZCOMM will exit Host
  725.           Operation at the conclusion of the transfer.  The state of the
  726.           quit flag is displayed each time ALT-Q is keyboarded.
  727.  
  728.       ALT-S Keyboarding Alt-S displays status information on the console
  729.           screen only (even if in Host Operation).  The pattern number of
  730.           the last successful search (-1 if no match), the active search
  731.           patterns (if any), and the line numbers of the active scripts (if
  732.           any) are displayed to aid script debugging.
  733.  
  734.       ALT-V Keyboarding ALT-V will toggle the view option affecting the rb,
  735.           rc, rz, sb, sc, sx, and sz commands, and data transfers using the
  736.           Compuserve B protocol.
  737.  
  738.       ASCII Keyboarding a normal ASCII character (in the range of 00 to 7F)
  739.           will send that character to the modem.  This may be used for
  740.           protocol testing, or to terminate a modem's autodial handshake
  741.           without terminating ZCOMM's call retry count.
  742.  
  743.       Ctrl-X All ZMODEM and many YMODEM and XMODEM protocol programs
  744.           recognize a dozen successive Ctrl-X characters as a session abort
  745.           command.  If the remote computer appears to be "stuck" in a YMODEM
  746.           or ZMODEM transfer, keyboard ten Ctrl-X characters to abort the
  747.           protocol transfer.
  748.  
  749.       During a protocol transfer, normal keys are sent to the modem when
  750.       Zcomm is waiting for or receiving a packet.  This may be used to
  751.       reissue a file transfer command to the other computer if it becomes
  752.       apparent the original command was not accepted.
  753.  
  754.       Other uses for this pass thru capability include protocol testing.
  755.  
  756.       18.2  Local Editing Keys
  757.  
  758.       Emacs style character editing reduces the number of keystrokes needed
  759.       to enter and edit commands and strings.  Normally the cursor is at the
  760.       end of the line of text being keyboarded.  Printing characters insert
  761.       themselves at the cursor location.  The <ENTER> key enters/transmits
  762.       the entire line of text.
  763.  
  764.  
  765.  
  766.       (C) 1994 Omen Tech Inc                   Chapter 18 Local Editing Keys
  767.  
  768.  
  769.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  770.       ZCOMM User Manual                                                  104
  771.  
  772.       Left, Ctrl-B moves the cursor to the left
  773.  
  774.       Right, Ctrl-F moves the cursor to the right
  775.  
  776.       Ctrl-Left cursor WORD left
  777.  
  778.       Ctrl-Right cursor WORD right
  779.  
  780.       Ctrl-A cursor to beginning of line
  781.  
  782.       Ctrl-E cursor to end of line
  783.  
  784.       Del, Ctrl-D delete character at cursor
  785.  
  786.       Backspace delete character to left of cursor
  787.  
  788.       Ctrl-W delete word to left of cursor
  789.  
  790.       Ctrl-End, Ctrl-K delete to end of line
  791.  
  792.       Ctrl-R refresh (redisplay) the line
  793.  
  794.       Ctrl-X delete entire line
  795.  
  796.       Down, Ctrl-N next history line
  797.  
  798.       Up, Ctrl-P previous history line
  799.  
  800.       Ctrl-U Argument Count (not available in term function)
  801.  
  802.       An initial Ctrl-U sets an argument count of 4.  Successive Ctrl-U
  803.       characters multiply the argument count by 4.  A decimal number may be
  804.       entered after Ctrl-U, and this number becomes the argument count.
  805.  
  806.       EXAMPLE: ^U^U Left moves the cursor 16 left
  807.  
  808.  
  809.       EXAMPLE: ^U5X inserts 5 "X" characters
  810.  
  811.  
  812.       EXAMPLE: ^U5^U?  inserts 20 "?" characters.
  813.  
  814.       Unix/Xenix flavors do not support Emacs style editing in the term
  815.       function.
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.       (C) 1994 Omen Tech Inc                        Chapter 18 Main Commands
  826.  
  827.  
  828.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  829.       ZCOMM User Manual                                                  105
  830.  
  831.       19.  MAIN COMMANDS
  832.  
  833.       All commands and arguments must be entered in lower case except where
  834.       stated.
  835.  
  836.       You may shorten some commands by typing just the first portion that is
  837.       shown in caps.  For example, the "break" command may be entered as
  838.       "br".  Whether or not you abbreviate the command, it must be entered
  839.       in lower case.
  840.  
  841.       User defined Soft Keys are executed from the command prompt iff they
  842.       do not conflict with the permanent definitions described below.
  843.  
  844.       Except where stated, multiple commands can be written on one line
  845.       separated by ; (semicolon).  Commands that take a constant number of
  846.       arguments do not need a semicolon to delimit the end of the command.
  847.       If in doubt, use a semicolon to separate multiple commands.[1]
  848.  
  849.       @ The at sign may be used to indicate a telephone number starting with
  850.         the Touch-Tone(TM) A B C D * or # codes or a character escape.  If
  851.         the phone number contains spaces, it must be enclosed in double
  852.         quotes.  The leading @ is not sent to the modem.
  853.  
  854.         EXAMPLE: @#*-123-4567 Dials #*-123-4567.
  855.  
  856.  
  857.       %l-234-567-8901 (%l:letter l) For normal long distance dialing, the
  858.         string parameter l (letter l) defaults to "1" (digit 1).  To use an
  859.         alternative long distance service, set the l string parameter with a
  860.         modem command to dial the local access number, wait for the second
  861.         dial tone, and transmit the account number.
  862.  
  863.         SEE ALSO: "setsavenet" telephone directory entry
  864.  
  865.         A string of alternate phone numbers may be specified with the "+"
  866.         construction shown below.
  867.  
  868.       234-5678 A number given as a command invokes the dial script to
  869.         attempt a connection with the specified number.  Iff the modem is
  870.         currently connected to a remote modem, and the B numeric parameter
  871.         is non zero, ZCOMM pulses Data Terminal Ready, terminating the
  872.         connection.  ZCOMM character escapes may be used within the number
  873.         string to represent special characters.
  874.  
  875.  
  876.  
  877.       __________
  878.  
  879.        1. A space or two after each semicolon makes scripts easier for
  880.           humans to read.
  881.  
  882.  
  883.  
  884.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  885.  
  886.  
  887.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  888.       ZCOMM User Manual                                                  106
  889.  
  890.         EXAMPLE: 234-5678
  891.  
  892.  
  893.         When carrier is detected, ZCOMM executes the mconnect string (if
  894.         set).  If there is no next command, ZCOMM returns to the command
  895.         prompt.
  896.  
  897.         One or several alternate phone numbers may be specified by appending
  898.         the previous number with +234-5678 for as many alternate numbers as
  899.         are desired.[2] When a connection is made, undialed alternates are
  900.         forgotten.  Alternate phone numbers need not support the same
  901.         speeds.  A redial count given to the call command repeats the
  902.         sequence of alternate numbers.
  903.  
  904.         EXAMPLE: cis  speed 2400 239-6124/mnp_s+239-6126/mnp_s+232-1032/300
  905.         This script line attempts a MNP (with software flow control) call to
  906.         the first two numbers, then a 300 bps call to the third number if
  907.         neither of the first two connected.
  908.  
  909.  
  910.         Iff no connection is made, script processing at the current level is
  911.         terminated.
  912.  
  913.         A number of modifiers are available depending on the type of modem
  914.         and the choice of dialing script used.  These are described in
  915.         Chapter 8.
  916.  
  917.  
  918.         SEE ALSO: nolog command, calllog string parameter, mcommand string
  919.         parameter
  920.  
  921.       a: Change the default disk to a:.  ZCOMM then prints the free storage
  922.         remaining on the selected disk.  The specified disk must be included
  923.         in the string parameter disks.
  924.  
  925.       abort Aborts any command or script in progress.  Closes all script
  926.         files that may be open.  Abort returns to the command prompt.
  927.  
  928.         SEE ALSO: quit command
  929.  
  930.       accept[[l]1] stringvar prompt (letter l, digit 1) Scripts often need
  931.         to prompt the user for file names and menu choices.
  932.  
  933.         Accept displays Prompt[3] to the user.  ZCOMM then reads keyboard
  934.  
  935.  
  936.       __________
  937.  
  938.        2. When using the mm224 dialing script.
  939.  
  940.        3. Prompt must be enclosed in quotes if it contains spaces.
  941.  
  942.  
  943.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  944.  
  945.  
  946.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  947.       ZCOMM User Manual                                                  107
  948.  
  949.         input into the specified string variable.  Backspace and Ctrl-U
  950.         perform editing functions.  Characters are accepted from the user
  951.         until <ENTER> is typed.  If the H numeric parameter is non zero, an
  952.         empty string is returned if <ENTER> is not typed within the time
  953.         limit set by that parameter.  Acceptl translates the user's response
  954.         to lower case.  Acceptl1 returns a 1 character string in lower case
  955.         after the single character is keyboarded.
  956.  
  957.         Prompt is processed for string substitution and character escapes.
  958.         If the result begins with an ESC character, ZCOMM does not
  959.         reposition the cursor before accepting the string.  In writing
  960.         scripts, it may be useful to save the current screen location with
  961.         an escape sequence, then restore it with an escape sequence encoded
  962.         in the prompt string.
  963.  
  964.         EXAMPLE: accept s1 File: Displays the prompt File: and reads the
  965.         keyboarded response to string parameter s1.
  966.  
  967.  
  968.         EXAMPLE: acceptl1 s0 "Enter Menu Choice" Reads a single character
  969.         from the user, translates it to lower case, and assigns it to s0.
  970.  
  971.  
  972.         EXAMPLE: accept s0 "\E[20;60H\E[KFile Name: " Places the cursor at
  973.         line 20 column 60, clears the rest of the CRT line, displays the
  974.         prompt, and accepts input.
  975.  
  976.  
  977.         EXAMPLE: accept s6 " Your \E[1mFirst\E[0m name please " Uses
  978.         boldface video to highlight First as it appears in the prompt.
  979.  
  980.  
  981.         EXAMPLE: accept s2 "File "; rc %s2 Prompts the user for a file name,
  982.         then receives that file with XMODEM/CRC protocol.
  983.  
  984.  
  985.         EXAMPLE: accept xpassword "\E[mMaster Password: \E[8m"; lput "\E[m"
  986.         Uses invisible video (ESC [ 8 m) to allow a password to be entered
  987.         without visible echo.  The ESC [ m sequences reset the display to
  988.         normal (visible).
  989.  
  990.  
  991.         SEE ALSO: obey command, scripts
  992.  
  993.       ap file1 file2* (Append) Appends the contents of file1 to file2.  If
  994.         file2 does not exist, it is created.  Wildcards are not allowed.
  995.         The ap command may close files that have been opened by the create,
  996.         f, open, t or > commands.  File1 and file2 are processed for string
  997.         parameter substitution.
  998.  
  999.  
  1000.  
  1001.  
  1002.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1003.  
  1004.  
  1005.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1006.       ZCOMM User Manual                                                  108
  1007.  
  1008.       apd file1 file2* (Append-Delete) Appends the contents of file1 to
  1009.         file2, then deletes file1.  If file2 does not exist, it is created.
  1010.         If an error is detected writing file2, file1 is not deleted.
  1011.         Wildcards are not allowed.  The apd command may close files that
  1012.         have been opened by the create, f, open, t or > commands.  File1 and
  1013.         file2 are processed for string parameter substitution.
  1014.  
  1015.         EXAMPLE: apd %item Z%item.tmp
  1016.  
  1017.  
  1018.       bdump outfile Dumps the contents of the modem interrupt input buffer
  1019.         to outfile.  This command is useful for debugging as outfile will
  1020.         contain the last characters received from the remote regardless of
  1021.         what ZCOMM commands have been executed.  The most recently received
  1022.         data appears at the end of outfile.  This command "tells it as it
  1023.         is", writing all 8 bits of each character to outfile.  If only a few
  1024.         characters have been received from the remote sine ZCOMM was
  1025.         started, some of outfile will consist of nulls.  The bdump command
  1026.         is often used as a post mortem diagnostic dump after a failed script
  1027.         or unsatisfactory file transfer.  Try sending a 256 byte file
  1028.         containing each code (0 to 255), then examine the results to see
  1029.         what the comm link did to the data.  This command is not available
  1030.         on OS/2 and X.PC flavors of ZCOMM.
  1031.  
  1032.       bg Indicates ZCOMM is running in the background with no user at the
  1033.         keyboard.
  1034.  
  1035.         SEE ALSO: fg command, df test condition
  1036.  
  1037.       BReak Sends a 200 millisecond break signal.
  1038.         N.B.: Some modems do not correctly pass the break signal to the
  1039.         remote.
  1040.  
  1041.         SEE ALSO: Ctrl-Break key, break string parameter, zmodem B numeric
  1042.         parameter
  1043.  
  1044.       BROwse pathspec Browse through the files specified in pathspec.  If
  1045.         pathspec is empty, all files are presented.  For each matched
  1046.         pathname, the filename, date, and length of the file are displayed.
  1047.         The status line displays some of the commands which may be applied
  1048.         to each file.  Chapter 19.4 describes the browse subcommands, which
  1049.         provide extensive capabilities for individually selected files.
  1050.  
  1051.       bye Terminate the connection in progress by sending a long space and
  1052.         then dropping DTR (Data Terminal Ready).[4] After a pause, DTR is
  1053.  
  1054.  
  1055.       __________
  1056.  
  1057.        4. The modem must be configured to use Data Terminal Ready (DTR).
  1058.  
  1059.  
  1060.  
  1061.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1062.  
  1063.  
  1064.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1065.       ZCOMM User Manual                                                  109
  1066.  
  1067.         reasserted to allow the modem to originate or answer another
  1068.         call.[5]
  1069.  
  1070.         SEE ALSO: o, off commands
  1071.  
  1072.       call [-N] [name][.directory][,modifier] Prepare ZCOMM for a new task
  1073.         and invoke an entry in the Phone Directory.  If directory is
  1074.         specified, it is searched instead of the regular Phone Directory.
  1075.         An optional modifier (string with a leading comma), may be added; it
  1076.         is passed to the script.
  1077.  
  1078.         The 7, A, a, b, C, c, E, e, g, H, h, i, j, n, o, P, p, q, r, S, s,
  1079.         t, u, v, w, X, x, Z, and z term options are reset.  The d term
  1080.         option is set.  The e, f, g, k, m, p, q, t, w, Kermit 8, zmodem C,
  1081.         e, l, L, p, t, T, w, and W parameters are reset to their default
  1082.         values.  The search patterns are erased.  Permanent string
  1083.         parameters set with the set _svar command are set to empty.
  1084.  
  1085.         If the search is successful, the entire directory entry name is
  1086.         copied to the remote string parameter.  The complete argument
  1087.         entered on the command line is stored in the args string parameter
  1088.         visible to the called script.  If the script has a READ ONLY
  1089.         attribute, ZCOMM is unrestricted during execution of the script.
  1090.         ZCOMM then executes the commands on the rest of the line (if any),
  1091.         and on succeeding lines beginning with a space or tab.  If the v
  1092.         numeric parameter is greater than zero, each command from the file
  1093.         is displayed on the screen before it is executed.
  1094.  
  1095.         It is not necessary to type the entire name as it appears in the
  1096.         telephone directory, as ZCOMM will find the first entry that name is
  1097.         a prefix of.  Iff name is empty, execution begins with the first
  1098.         line of path.
  1099.  
  1100.         EXAMPLE: call cis1200
  1101.              call cis1
  1102.              call cis.C:/newscript
  1103.  
  1104.  
  1105.         EXAMPLE: call genie,upl Invokes the genie telephone directory entry
  1106.         with the modifier ,upl available to the called script.
  1107.  
  1108.         The call command is not limited to making connections.  For example,
  1109.         "call host" in the distribution PHODIR.t file conditions a Hayes
  1110.         compatible modem to answer incoming calls silently, set parameters,
  1111.  
  1112.  
  1113.       __________
  1114.  
  1115.        5. Most dialing scripts include an initial bye command to make sure
  1116.           any previous call is disconnected.
  1117.  
  1118.  
  1119.  
  1120.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1121.  
  1122.  
  1123.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1124.       ZCOMM User Manual                                                  110
  1125.  
  1126.         and activates ZCOMM's host operation.
  1127.  
  1128.         Most directory entries include a telephone number to dial.  If ZCOMM
  1129.         is used with an autodial modem, the number of retries N (default
  1130.         none) may be specified.
  1131.  
  1132.         EXAMPLE: call -40 cbbs-r Attempts 40 retries before giving up.
  1133.  
  1134.         The interval between retries is set by the i numeric parameter.
  1135.  
  1136.         EXAMPLE: pi4 Sets the interval between retries to 4 seconds.
  1137.  
  1138.         Words To the Wise: Abuse of the retry feature by continually calling
  1139.         busy numbers may incur the wrath of the Telephone Company.
  1140.         Especially with Message Unit Accounting, Big Brother may be watching
  1141.         your telecommunications habits.  Some long distance services (MCI,
  1142.         Sprint, AT&T, etc.) charge for unsuccessful calls, especially if the
  1143.         phone is allowed to ring (or ring busy) for more than a few seconds.
  1144.  
  1145.         Consult your telephone company about legal limits to the number and
  1146.         frequency of retries.
  1147.  
  1148.         Since some computer services will disconnect within a short time if
  1149.         no login is attempted, you should start communicating as soon as the
  1150.         modems are connected.  ZCOMM sounds the bell after making the
  1151.         connection if retries have been specified.
  1152.  
  1153.         The source, gosub and call commands may be nested with up to six
  1154.         command/phones file descriptors open at once.[6] A label may be the
  1155.         target of a call command provided the trailing colon is included in
  1156.         name.
  1157.  
  1158.       cat pathspec For Unix users, a synonym to the type command (q.v.).
  1159.  
  1160.       cd [dir] Change to directory dir.  If Restricted, dir is checked for a
  1161.         parent directory ("cd  .."), and absolute paths ("cd  /src") not
  1162.         prefixed by the home string parameter.  Giving cd without an
  1163.         argument changes to the directory stored in the home string
  1164.         parameter.[7] ZCOMM then stores the current directory in the pwd
  1165.         string parameter and displays it unless the v numeric parameter is
  1166.         less than 0.
  1167.  
  1168.  
  1169.       __________
  1170.  
  1171.        6. Deep nesting may require a decrease in the circular buffer memory
  1172.           allocation, see Chapter 16.
  1173.  
  1174.        7. The home parameter is set to the current directory when ZCOMM is
  1175.           invoked, but may be changed with the set command.
  1176.  
  1177.  
  1178.  
  1179.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1180.  
  1181.  
  1182.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1183.       ZCOMM User Manual                                                  111
  1184.  
  1185.         EXAMPLE: cd  /tmp
  1186.  
  1187.         N.B.: When operating restricted, the home string parameter must
  1188.         point to a valid directory in order to enforce the intended
  1189.         directory path restriction.
  1190.  
  1191.         SEE ALSO: cdd and pwd commands, home and pwd string parameters
  1192.  
  1193.       cd  D:dir When a disk drive is specified with the cd command, the
  1194.         current directory on that drive is changed but ZCOMM remains logged
  1195.         in on the current drive and directory.  If Restricted, dir is
  1196.         checked for a disk drive ("cd  b:/foo") not contained in the disks
  1197.         string parameter.
  1198.  
  1199.         EXAMPLE: cd D:/tmp
  1200.  
  1201.  
  1202.       cdd D:dir Change to (log in to) disk D and then to directory dir on
  1203.         the specified disk.  If dir is not specified, the root directory is
  1204.         assumed.  ** This is a shorthand equivalent to a D: command followed
  1205.         by a chdir dir command.
  1206.  
  1207.         SEE ALSO: cd command
  1208.  
  1209.       chat Enter the term function to chat keyboard to keyboard.  Characters
  1210.         typed by either keyboard are echoed to both ends, and RETURNS echo
  1211.         as RETURN/LINEFEED.  In Host Operation, chat exits if the caller
  1212.         types Ctrl-Z.
  1213.  
  1214.         Chat will become hostile if the other end also echoes characters.
  1215.         (Try it sometime on a timesharing system; it's fun.)
  1216.  
  1217.       close Writes the contents of the circular buffer iff a receive file is
  1218.         open, then closes the receive and transmit files.  ZCOMM complains
  1219.         if no files were open.
  1220.  
  1221.         SEE ALSO: nolog command
  1222.  
  1223.       closerx Iff a receive file is open, writes the circular buffer then
  1224.         closes the receive file.
  1225.  
  1226.         SEE ALSO: nolog command
  1227.  
  1228.       closetx Closes the transmit file, if it is open.
  1229.  
  1230.         SEE ALSO: nolog command
  1231.  
  1232.       cl Clears the screen.
  1233.  
  1234.       cls Resets display modes and clears the screen.
  1235.  
  1236.  
  1237.  
  1238.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1239.  
  1240.  
  1241.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1242.       ZCOMM User Manual                                                  112
  1243.  
  1244.       CONFerence Enters the term function with a 1 line window for composing
  1245.         commands and text.  Chapter 21.5 gives details.
  1246.  
  1247.       crc pathspec Print the CRC-32 and character count for the specified
  1248.         files.  The crc command verifies the identity of two (or more)
  1249.         copies of a file.  Iff the lengths and CRC-32's of two files are the
  1250.         same, the files are almost certainly identical.  Comparing files
  1251.         with the crc command is faster than transmitting a second copy for
  1252.         character by character comparisons.
  1253.  
  1254.         EXAMPLE: "crc", "crc *.c"
  1255.  
  1256.         HINT: To generate a file containing the CRC's of the files in the
  1257.         current directory:
  1258.  
  1259.              >crc.lst
  1260.              crc *.*
  1261.              close
  1262.  
  1263.         After the files are copied, run the commands above (with a different
  1264.         file name), then compare the two files with DIF.EXE to detect any
  1265.         that have changed.
  1266.  
  1267.         SEE ALSO: sum, wc commands
  1268.         Source for a public domain Unix/DOS version of CRC is available.
  1269.  
  1270.       create [-term_options] outfile If a receive capture file is open as
  1271.         the result of a create or t filename command, write the circular
  1272.         buffer and close it.  Then create outfile for use with the term
  1273.         function with options.  The create command is especially useful when
  1274.         you don't want to enter the term function immediately.
  1275.  
  1276.         EXAMPLE: create -ys /tmp/cbbs.tmp[8]
  1277.  
  1278.  
  1279.         SEE ALSO: > command
  1280.  
  1281.       createx outfile Similar to the create command, but does not open
  1282.         outfile if a file with the same pathname already exists.  The
  1283.         resulting error message may be suppressed by setting the v numeric
  1284.         parameter negative.  Scripts may test for success with the r test
  1285.         condition.  The createx command may be used to manage semaphores to
  1286.         lock resources or work entries used by multiple instances of a
  1287.  
  1288.  
  1289.       __________
  1290.  
  1291.        8. The y option overwrites any existing file with the same name.  The
  1292.           s term option strips most control characters from the resulting
  1293.           disk file.
  1294.  
  1295.  
  1296.  
  1297.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1298.  
  1299.  
  1300.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1301.       ZCOMM User Manual                                                  113
  1302.  
  1303.         program.  The createx command is available on Unix and OS/2 flavors.
  1304.  
  1305.         SEE ALSO: kill command
  1306.  
  1307.       del pathspec Delete the specified files.  No message is printed if one
  1308.         or more of the specified files could not be deleted.  No
  1309.         confirmation is requested for mass deletes.
  1310.  
  1311.         WARNING: As with all ZCOMM pathspec specifications, a directory name
  1312.         expands to all files in that directory.
  1313.         N.B.: Do not attempt to delete an open file on DOS, especially the
  1314.         history file.
  1315.  
  1316.         SEE ALSO: browse command
  1317.  
  1318.       demand password Scripts must often verify a caller's identity by
  1319.         asking for a password.  The ZCOMM password command allows a caller
  1320.         three chances to enter a given password.  Failure results in
  1321.         disconnection.
  1322.  
  1323.         Password is processed for character escapes and string
  1324.         substitutions.  All security restrictions on string parameters are
  1325.         enforced.
  1326.  
  1327.         If the result is empty, no password is demanded.  Otherwise the user
  1328.         is prompted to enter a string matching password in the correct case.
  1329.         Keyboard input is not echoed.
  1330.  
  1331.         Three attempts to enter password are allowed.  If the password is
  1332.         not correctly entered, DTR is pulsed to force the modem to
  1333.         disconnect the caller, and the ?  numeric parameter is set negative.
  1334.  
  1335.         EXAMPLE: demand %password Requires the caller to enter a string
  1336.         matching the contents of the password string parameter.
  1337.  
  1338.  
  1339.       dir pathspec Display pathnames matching pathspec alphabetized across
  1340.         the page.  Wildcard filename expansions are alphabetical.
  1341.  
  1342.         EXAMPLE: dir
  1343.  
  1344.  
  1345.         EXAMPLE: dir y*.c *.h
  1346.  
  1347.  
  1348.       dirr pathspec Displays the directory with length and creation date of
  1349.         each file.  dirr displays the number of files matched, number of
  1350.         blocks, number of kb in those files, and estimated transmission time
  1351.         at the current transmission speed assuming the fastest protocol
  1352.         available (ZMODEM or YMODEM-g).  XMODEM and Kermit transfers take
  1353.         longer than the displayed estimates.  Wildcard filename expansions
  1354.  
  1355.  
  1356.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1357.  
  1358.  
  1359.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1360.       ZCOMM User Manual                                                  114
  1361.  
  1362.         are alphabetical.
  1363.  
  1364.       dird pathspec Long Form directory, sorted by date.
  1365.  
  1366.       dirt pathspec Long Form directory, reverse sorted by date.
  1367.  
  1368.       dirl pathspec Long Form directory, sorted by file length.
  1369.  
  1370.       dirs pathspec Long Form directory, reverse sorted by file length.
  1371.  
  1372.       dirx pathspec Long Form directory, sorted by file extension.
  1373.  
  1374.       DISable{-term_options} Disable options(s) affecting the term function.
  1375.         Chapter 22 describes options affecting the term function.
  1376.  
  1377.         EXAMPLE: dis -t Disables throttle (t term option).
  1378.  
  1379.  
  1380.       display [[no]dismode] ... Without an argument, prints the display
  1381.         modes.  Display modes preceded by NO are turned off.  With one or
  1382.         more arguments, turn on the specified display mode(s).  If an
  1383.         argument is preceded by no, the specified display mode is turned
  1384.         off.
  1385.  
  1386.         If an emulation is specified, it must be the first argument.
  1387.         display command argument changing the terminal emulation (vt100,
  1388.         dasher, lsi-adm3a, 3101, wyse, dumb) disables nlmode and overstrike.
  1389.  
  1390.         The display modes are:
  1391.  
  1392.         vt100 Emulate VT-100, VT-102, SCO Console, and most VT-220 and
  1393.               Teletype 5425 codes.  VT-52 and Zenith H-19 codes are the
  1394.               default.
  1395.  
  1396.               SEE ALSO: 101.MK,STD.MK, script files
  1397.  
  1398.         lsi-adm3a Emulate Lear Siegler ADM3a and Televideo 9xx control
  1399.               codes.
  1400.  
  1401.         dasher Emulate Data General Dasher terminals.
  1402.  
  1403.         3101  Executes IBM 3101 and TI 940 escape codes.
  1404.  
  1405.         wyse  Emulate Wyse terminals in native mode, allow switching the
  1406.               keyboard to keyscan mode.
  1407.  
  1408.               SEE ALSO: WYS.MK script file
  1409.  
  1410.         dumb  Only null, bs, tab, cr and lf are executed, all others
  1411.               display.  As in real life, dumb takes precedence over vt100,
  1412.               vt52, and lsi-adm3a emulation.
  1413.  
  1414.  
  1415.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1416.  
  1417.  
  1418.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1419.       ZCOMM User Manual                                                  115
  1420.  
  1421.         inhibit Inhibits the display (nothing prints).
  1422.  
  1423.               SEE ALSO: Q term option
  1424.  
  1425.  
  1426.         nlmode Received newlines (linefeed) display as return/linefeed.  The
  1427.               Enter key is sent as CR/LF.
  1428.  
  1429.         bell=visual Instead of sounding on the speaker, bell characters
  1430.               cause flashing notes to appear on the screen.
  1431.  
  1432.         overstrike Overstruck characters are displayed in bold face or
  1433.               underline (reverse video on CGA) as appropriate.
  1434.  
  1435.         autowrap The 81st character prints on a new line with possible
  1436.               scrollup.
  1437.  
  1438.         rautowrap Allow a backspace from the lest margin to reverse wrap to
  1439.               the last character position on the previous line.
  1440.  
  1441.         8bit  Decode 8bit control characters and G1 character set.
  1442.  
  1443.         stat=off Disables ZCOMM's status line.
  1444.  
  1445.         warpdrive Provides higher display speed without scrolling flicker,
  1446.               but causes noise (snow/chromablizzard) with CGA display
  1447.               adapters.
  1448.  
  1449.         mapkb Allow escape codes from the remote or a file to active
  1450.               alternate keyboard mapping.  The keyboard mapping is defined
  1451.               with a series of mk commands, such as those contained in the
  1452.               std.mk (standard keyboard) or 101.mk (101 key extended
  1453.               keyboard) files.  Other XXX.mk files may be provided; the
  1454.               first few lines of these files indicate the keyboard
  1455.               configuration they set up.  ZCOMM comes initialized with the
  1456.               std.mk mapping, which requires NumLock to be on.
  1457.  
  1458.               EXAMPLE: source std.mk Defines a VT100 keyboard mapping for
  1459.               standard PC and PC-AT keyboards.
  1460.  
  1461.               The term function keyboard mapping enabled by the mapkb
  1462.               command may override some ZCOMM functions.
  1463.         A display nlmode nobell=visual Turns on nlmode display mode and
  1464.         turns off the visual bell.
  1465.  
  1466.  
  1467.         EXAMPLE: display vt100 Enables VT100/VT102 emulation used by many
  1468.         computer systems.
  1469.  
  1470.  
  1471.         SEE ALSO: tcs command
  1472.  
  1473.  
  1474.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1475.  
  1476.  
  1477.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1478.       ZCOMM User Manual                                                  116
  1479.  
  1480.       dump pathspec Dump the named files in a side by side hex/ASCII format,
  1481.         similar to the CP/M users' group DUMP program.  The ending character
  1482.         number is also displayed.  Zero length files are not displayed.
  1483.  
  1484.       echo[c|f] [-n] string Echo a line containing a single argument string
  1485.         in reverse video.  The optional -n suppresses reverse video and
  1486.         linefeeds.  Tabs should not be used with the echo command.  The
  1487.         echoc command also echoes its argument to the capture file (if
  1488.         open), without reverse video.  The echof command echoes its argument
  1489.         to the capture file only.
  1490.  
  1491.         EXAMPLE: echoc "File not Accepted" Outputs a line to the screen and
  1492.         to the capture file.
  1493.  
  1494.  
  1495.         EXAMPLE: echo "Dave, This conversation can serve no further
  1496.         purpose." Displays a line on the screen only.
  1497.  
  1498.  
  1499.         SEE ALSO: lput command, r numeric parameter, character escapes
  1500.  
  1501.       egrep[m] regular-expression pathspec ** Display lines in the specified
  1502.         files matching regular-expression.  Regular Expressions are
  1503.         discussed in Chapter 26.
  1504.  
  1505.         The egrepm command finds a line matching regular-expression in each
  1506.         of the specified files, and then pages through the file beginning
  1507.         with the matched line.  At the end of each screen, ZCOMM accepts the
  1508.         same subcommands used with the findm command.
  1509.  
  1510.         EXAMPLE: egrep "^Subject:" *.* Displays all lines that begin with
  1511.         "Subject:".
  1512.  
  1513.  
  1514.         SEE ALSO: findmore command
  1515.  
  1516.         The egrep implementation does not strip the trailing CR/LF from
  1517.         lines read from the disk.  This affects use of the $ regular
  1518.         expression magic character.  When using the $ magic character, the
  1519.         CR/LF at the end of normal lines must be represented as "..$".
  1520.  
  1521.       egrepq regular-expression pathspec ** Silently searches the specified
  1522.         files for the first line matching regular-expression.  Upon a
  1523.         successful search, the contents of this line are stored in the z0
  1524.         string variable and the ?  numeric parameter is incremented.  The
  1525.         egrepq command is useful for fetching password information from a
  1526.         disk file.
  1527.  
  1528.         SEE ALSO: obey command, findq command
  1529.  
  1530.  
  1531.  
  1532.  
  1533.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1534.  
  1535.  
  1536.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1537.       ZCOMM User Manual                                                  117
  1538.  
  1539.       else Execute the command(s) on the rest of the line if the last if
  1540.         test performed on the current script level was false.
  1541.         N.B.: While else statements in programming languages are connected
  1542.         to a particular if statement according to syntax, the connection in
  1543.         ZCOMM is to the last if statement executed on the level, regardless
  1544.         of goto's.
  1545.  
  1546.       ENAble {-term_options} Enable options affecting the term function.
  1547.         Chapter 22 describes options affecting the term function.
  1548.  
  1549.         EXAMPLE: ena -h Enables half-duplex (local echo) Half-duplex option
  1550.         causes the term function to display keyboarded characters.
  1551.  
  1552.  
  1553.       estimate length [speed] Use the specified length and optional
  1554.         specified effective speed when displaying information for the next
  1555.         receive file.  A length of 0 bypasses the length substitution.  Once
  1556.         a speed (in effective bits per second) is given, it is used for all
  1557.         locally displayed transmission time calculations until the next
  1558.         speed or port command.
  1559.  
  1560.         EXAMPLE: estimate z2 Uses the file length stored in string variable
  1561.         z2 in calculating the transmission time estimate for the next
  1562.         received file.
  1563.  
  1564.  
  1565.         EXAMPLE: speed 19200; estimate 0 2400 Use an effective transmission
  1566.         speed of 2400 for transmission time estimates instead of the 19200
  1567.         bps interface speed.
  1568.  
  1569.  
  1570.       exit [code] Exit to the operating system with optional code.
  1571.  
  1572.         SEE ALSO: x, o, off commands
  1573.  
  1574.       EXPand sourcefile pathspec ** For each pathname in pathspec, execute
  1575.         the commands in sourcefile with the string parameter item set to the
  1576.         current pathname.  The commands in sourcefile must not themselves
  1577.         contain wildcards (* or ?) or directory pathnames.  If no files
  1578.         match pathspec, sourcefile is not executed.  If the script executed
  1579.         has a READ ONLY attribute, ZCOMM is unrestricted during execution of
  1580.         the script.
  1581.  
  1582.         EXAMPLE: expand plxupl 001* Executes the script plxupl once for each
  1583.         file matching the wild card specification 001*.
  1584.  
  1585.  
  1586.         EXAMPLE: expand a *.arc where the file a contains:
  1587.              obey "!pkxarc -v %item >> arclist"
  1588.         lists the contents of all .arc files to arclist.
  1589.  
  1590.  
  1591.  
  1592.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1593.  
  1594.  
  1595.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1596.       ZCOMM User Manual                                                  118
  1597.  
  1598.         Chapter 99 explains the use of this command in more detail.
  1599.  
  1600.       f [-term_options] file The f (think of "file") command initiates
  1601.         transmission of file with the term function.  One or more term
  1602.         function options (described in Chapter 22) may be enabled with the
  1603.         optional term_options flag.
  1604.  
  1605.         If q (TWX) option is enabled, transmission pauses until the called
  1606.         system's answerback restarts it with an XON, or until g option is
  1607.         set.  Otherwise, any XOFF induced transmission pause is reset.
  1608.  
  1609.         Once the file has been opened with the f command, a pattern match or
  1610.         keyboarding F1 or ALT-X will exit the term function with file
  1611.         incompletely transmitted.  The rest of the file may be transmitted
  1612.         by the t, F2, or wait commands.
  1613.  
  1614.         EXAMPLE: f -px message Uploads message paced by the p term option,
  1615.         which sends a carriage return and pauses at the end of each
  1616.         transmitted line until the remote responds with the prompt character
  1617.         (default line feed).  The x term option makes the term function
  1618.         return to the script after the file has been transmitted.
  1619.  
  1620.  
  1621.         EXAMPLE: set eolstr "\r."; pp1000; pg58; f -p file Is useful for
  1622.         uploading a prepared message to a CompuServe bulletin boards using
  1623.         the "SIG" editor (not FILGE).  The eolstr setting sends a carriage
  1624.         return and period after each line to prevent the CompuServe software
  1625.         from reformatting the message.  Pp10000 Sets the pause timeout to a
  1626.         long time.  Pg58 Sets the prompt character to ":".  f -p file
  1627.         Transmits the file.
  1628.  
  1629.  
  1630.         SEE ALSO: b, g, p, r, n, t, w, x, X term options, eolstr string
  1631.         parameter, t and wait commands
  1632.  
  1633.       fail Terminate the current expand command, otherwise return from the
  1634.         current script level.
  1635.  
  1636.         If called directly by another level of script, that level is
  1637.         terminated.
  1638.  
  1639.         The fail command also causes the term function to exit, to allow a
  1640.         function key to be programmed with a macro that exits the term
  1641.         function.
  1642.  
  1643.         If called implicitly by a number presented for dialing, fail
  1644.         terminates the current dialing attempt.  If no retries are left, the
  1645.         call is abandoned.
  1646.  
  1647.       fg Indicates ZCOMM is running in the foreground with a user at the
  1648.         keyboard.
  1649.  
  1650.  
  1651.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1652.  
  1653.  
  1654.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1655.       ZCOMM User Manual                                                  119
  1656.  
  1657.         SEE ALSO: bg command, df test condition
  1658.  
  1659.       fget outfile * Gets 8 bit raw data from the modem to outfile without
  1660.         any protocol.  No data is displayed on the screen.  Keyboarding F1
  1661.         terminates recording; any other keyboarded character is sent to the
  1662.         remote.  Iff the g numeric parameter is set to to some value other
  1663.         than its default of 10 (line feed), the fget command terminates upon
  1664.         reading and storing a character matching the g numeric parameter.
  1665.         The fget command also terminates recording on loss of carrier detect
  1666.         signal.
  1667.  
  1668.         This command can be used when the flow of data from the remote
  1669.         cannot be regulated.  Do not set the I numeric parameter to a large
  1670.         value if flow control is not used.
  1671.  
  1672.         The maximum rate attainable without loss of data is limited by the
  1673.         maximum interrupt latency of the operating system and active device
  1674.         drivers.  The time required to write a 512 character buffer to disk
  1675.         may also limit the maximum average data rate.  Each 512 character
  1676.         block must be written before the modem interrupt input buffer
  1677.         overflows with new data.  If the startup time for a floppy disk is
  1678.         excessive, better results will be obtained writing to a hard disk or
  1679.         ramdisk[9] if a suitable device is available.  Tests with an IBM
  1680.         Personal Computer, DOS 2.1, and a Maynard Electronics hard disk
  1681.         suggest that no characters are lost at 9600 baud.  (Your results
  1682.         will vary depending on your configuration and programming habits.
  1683.         California estimates lower.)
  1684.  
  1685.         EXAMPLE: fget rawdata
  1686.  
  1687.  
  1688.       find string pathspec Find and display lines containing matches to
  1689.         string in the specified files.  Lower case characters in string
  1690.         match either case; upper case characters in string match upper case
  1691.         characters only.  If string contains spaces, tabs, or semicolon, it
  1692.         must be enclosed by double quote characters.  ZCOMM C style escapes
  1693.         may be used to represent control characters and string parameters to
  1694.         be searched for.  Assuming normal DOS files (with CR/LF at the end
  1695.         of each line), a \n at the beginning of string forces a match to the
  1696.         beginning of a line.  A \r at the end of string (\n if the file(s)
  1697.         have no returns in them) forces a match at the end of the line.
  1698.  
  1699.         The file name being searched and its length are displayed in the
  1700.         status line.  For each line that contains a match to string, the
  1701.         file name (if more than one file), line number, and the text of the
  1702.  
  1703.  
  1704.       __________
  1705.  
  1706.        9. See comments on Extended Memory ramdisks in Chapter 34.
  1707.  
  1708.  
  1709.  
  1710.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1711.  
  1712.  
  1713.       Version 18.18 TurboDial 2.41            Universal Line Printer Edition
  1714.       ZCOMM User Manual                                                  120
  1715.  
  1716.         line are displayed.
  1717.  
  1718.         EXAMPLE: find count *.c Finds all occurrences of count or COUNT in
  1719.         the named files.
  1720.  
  1721.  
  1722.         SEE ALSO: egrep command
  1723.  
  1724.       FINDMore string pathspec Findmore finds a line matching string in each
  1725.         of the specified files, and then pages through the file beginning
  1726.         with the matched line.  Otherwise, it is similar to the find
  1727.         command.  When the screen is filled up, the prompt More?  appears.
  1728.         Typing space displays another screenfull.  Typing n skips to the
  1729.         next instance of string that has not yet been displayed.  Typing ^Q
  1730.         or ^S displays one more character from the file.  Typing ^X skips to
  1731.         the next file.
  1732.  
  1733.         SEE ALSO: egrepm, page commands
  1734.  
  1735.       findq string pathspec Silently searches the specified files for the
  1736.         first line matching string.  The processing of string is identical
  1737.         to the find command described above.  Upon a successful search, the
  1738.         contents of this line are stored in the z0 string variable and the ?
  1739.         numeric parameter is incremented.  The findq command is useful for
  1740.         fetching password information from a disk file.
  1741.  
  1742.         SEE ALSO: egrepq command
  1743.  
  1744.       finish Terminates Kermit server operation on the remote system.
  1745.  
  1746.       fput file * Puts data from file to the remote at maximum speed without
  1747.         any protocol.  Flow control as determined by the handshake command
  1748.         and the S numeric parameter is respected.  After each 256
  1749.         characters, the number of characters transmitted is displayed, and
  1750.         the keyboard is polled.  Hitting any key will abort the transfer.
  1751.         This command is useful for testing RS232 peripherals at high rates.
  1752.  
  1753.         EXAMPLE: fput datafile
  1754.  
  1755.  
  1756.       fpute file * Echoplex transmit a file to the remote, waiting for the
  1757.         correct echo to each character transmitted (for Throttle/10
  1758.         seconds).  The echoed character is sent to the CRT screen.  If fpute
  1759.         receives a space as an echo to a tab, fpute waits for the spaces to
  1760.         stop echoing for at least 100 milliseconds before resuming
  1761.         transmission.  Transfer speed thus suffers when tabs are present in
  1762.         the transmitted file unless the remote can be set to echo tabs as
  1763.         tab characters instead of expanding them to spaces.  Throughput is
  1764.         less than 1/3 of normal because of the echo delay.
  1765.  
  1766.         Fpute counts each time the correct character is not echoed as an
  1767.  
  1768.  
  1769.       (C) 1994 Omen Tech Inc                        Chapter 19 Main Commands
  1770.  
  1771.