home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
ZF10Q.LBR
/
ZFILER.AZD
/
ZFILER.ADD
Wrap
Text File
|
1992-01-14
|
5KB
|
126 lines
ZFILER ADDENDUM January 13, 1992
This file brings Jay Sage's TCJ articles up to date with features added
in versions 1.0m to 1.0q. ZFHIST.DOC contains programmer's notes on
features and bug fixes.
ZFILER COMMANDS
---------------
Control-I (TAB) is an alias for control-J (jump to file again), for use
with terminal definitions (TCAPs) which define control-J as an arrow key.
It is now possible to answer ZFILER's "Login [DIR][:MASK] " prompt with
".<cr>" (same as ":<cr>") to log in all files in the current directory.
Previously this logged in all files at user zero of the current drive. The
Login command now also seems to accept ".afn" instead of ":afn".
Group Tag/Untag and Wild Tag can be independently set to operate from the
file pointer to the end of the ring, rather than on the entire ring. Group
Tag/Untag seem to be the most useful if the start at the file pointer. Use
the Options command to control this.
VIEW and PRINT now have a switchable filter which only passes printable
characters, carriage return, and line feed.
ZFILER now remembers all the file tags when it returns from a macro
or Z command. (It writes a temporary file, ZFILER.TAG, to a configurable
directory which contains the file list.)
ZFILER MACRO SCRIPTS
--------------------
$* script parameter clears the screen during, and rebuilds it after a
script prompt. Usage is $"$*..text.." Prompt text appears at the top of a
cleared screen.
Prompts in scripts may contain control characters as "^x" where x is any
character from @ to z.
The dollar sign is now an "escape character" for script prompts, and can
be used to include the $, ^, ", and ' characters in prompts.
Examples:
Script Result
$"Enter name or $^C: " Enter name or ^C:
$"Type $"//$" for help: " Type "//" for help:
Here is a parameter reminder you can include in your ZFILER.CMD file.
$! ZEX 'GO' $P DU:FN.FT $D Current Drive
$".." PROMPT $F FN.FT $U Current User
$'..' PROMPT $N FN $C Current DIR
$* CLS on Prompt $T FT $H Home DU $R Home DIR
ZFILER GROUP MACROS
-------------------
LIST CAPABILITY FOR GROUP MACROS:
If a ZFILER.CMD script begins with a comma (before or after the leading
"!" shell pause parameter), ZFILER will always expand the macro directly to
ZCPR's multiple command line. In the case of a group macro, $P, $F, and $T
parameters are expanded to a list of all tagged files, separated by the
character following the leading comma.
For example, the script:
1 , !echo the tagged files are $F
displays "THE TAGGED FILES ARE ", followed by a list of the tagged files
separated by " " on the console (assuming ECHO is a valid ZCPR command).
ZFILER then prompts for a keypress before returning. Please note that this
macro buffers the entire list of tagged files to CP/M's command line
buffer, which is only 125 bytes in length. The above command therefore
normally causes a "Command too long" error if more than about 8 files are
tagged, depending on the lengths of the tagged names.
List capability allows programs which accept a file list, such as LPUT or
V, to run on tagged files. ZEX is NOT involved.
GROUP MACRO TAGGED FILE COUNT:
The number of files tagged is put into User Register #5 (configurable)
before running ZEX. The macro can then down count and take some additional
action after it has run on each tagged file.
For example, if you press "G<ESC>1", the script:
1 ! $d$u:;$!crunch $f B1:;reg m5;if reg 5= 0;$"Library DU ":;
lput $"Library Name: " B1:*.* +1;era B1:*.?Z?;fi;$h:
crunches tagged files to a fixed empty directory B1:, makes a library out
of them (leaving room for 1 more file) with input for library name and
location, then erases all the crunchettes. This macro requires REG to
decrement Register 5.
Note that REG must be a Type3 or Type4 (or RCP) for the ZEX GO "$!" to
run CRUNCH repeatedly. Also note that registers only hold a 255 count!
For consistency, single macros put a "1" count in the User Register.
User register range 0..9 is not enforced, so you can use registers 10..31
if you wish. However, 10-15 are reserved, 16-17 are used by other
programs.
ZFILER INSTALLATION
-------------------
ZF10Q.CFG configuration file for use with ZCNFG.COM. Handles all the
configuration normally needed. You can use a file patcher to change the
default names of some of ZFILER's temporary files if you wish.