home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
filez18.zip
/
FILEZ.DOC
< prev
next >
Wrap
Text File
|
1994-04-01
|
17KB
|
568 lines
********************************************************************************
17:53:03 04/01/94 Page 1
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
o MODULE NAME
FILEZ
o LIBRARY NAME
TOOLZ
o TYPE
PROGRAM
o QUICK DESCRIPTION
Binary file examination and modification.
o ARGUMENT DESCRIPTION
filez <filename> [opt]
Options:
/m monochrome
/v video direct (MSDOS only)
o NARRATIVE DESCRIPTION
This utility can modify any unsigned char of a file, copy
portions of the file to other files, dump the file (in print
image) in entirety or one record at a time. Examination (in
REVIEW mode) and editing (in EDIT mode) is done in either hex or
ASCII. There are two modes, REVIEW and EDIT, under which files
are manipulated. The name of the file to be edited must be
supplied on the command line.
The /m (monochrome) startup option specifies that color should
not be used in displays (assuming that color is supported). The
MSDOS version also allows direct display video writes with the
/v option, which will produce faster display updates but
disallow Windows compatibility.
COMMANDS IN REVIEW MODE
Non-selection bar commands:
DOWN Next record
Also: Down-Arrow, +
UP Previous record
Also: Up-Arrow, -
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 2
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
? Display review mode help
Also: F1
Ctrl-W Repaint the screen
Ctrl-E Enter edit mode
Ctrl-N Search for next
HOME Set to first record (Beginning) of file
END Set to last record (end) of file
ESC Exit the filez program
Selection bar commands:
File
Exit
Exit the filez program
Help
Display the review mode help screen
ASCII table
Display the on-line ASCII table
Set
Address
Find the record for the specified address offset
Record
Set the current record number
End of file
Set to last record (end) of file
Beginning of file
Set to first record (Beginning) of file
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 3
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
Next record
Display next record
Previous record
Display previous record
Search case
Toggle Ignore Search Case (string mode search)
New file
Specify a new file to edit without exiting filez
Record size
Set Record size (maximum 256)
Copyfile name
Specify copyfile name
8-bit characters
Toggle display of 8-bit characters
Record size to Section size
Set record size to size of section block
Search
String
Search for a string from the current record
Pattern
Search for a pattern of unsigned chars from the current record
Next
Search for the next occurance
Translate
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 4
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
String
Translate one string to another
Pattern
Translate one pattern to another
Next
Translate the next occurance
Operate
Copy
Move a marked section of the file to copyfile
(must be 'O'pened first)
Cut
Delete the currently marked section from the file
Pad copyfile
Pad the copyfile with a specified character
Extend
Extend the file with a specified character
Edit record
Enter the EDIT mode at the current record
Insert file
Insert copyfile into current file at section beginning
Update
Write the current record to the file
Print
Record
Dump the current record to print image
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 5
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
Whole file
Dump the file to a print image file
COMMANDS IN EDIT MODE
UP Move cursor up one line (keyboard up arrow)
Also: Ctrl-E, Ctrl-I
DOWN Move cursor down one line (keyboard down arrow)
Also: Ctrl-X, Ctrl-K
LEFT Move cursor left one character (keyboard left arrow)
Also: Ctrl-S, Ctrl-J
(Unix note: do not use Ctrl-S if software
handshaking is enabled)
RIGHT Move cursor right one character (keyboard right arrow)
Ctrl-D, Ctrl-L
Ctrl-B Mark beginning of section at cursor
Ctrl-P Mark end of section
ENTER Toggle hex/ASCII mode
ESC Exit editing mode
F1 Display edit mode help
Also: Ctrl-H
Ctrl-W Repaint the screen
Ctrl-F Jump to byte offset
The REVIEW mode is entered by default when FILEZ is started.
Commands for this mode are accepted at the filez> prompt. Error
messages are always displayed on the bottom line of the screen.
Either a '?' or F1 key may be pressed to see the help screen for
the REVIEW mode. (Note that the F1 key is terminal-dependent in
the Unix version).
For some commands, more than one key may be effective. This may
be useful on some terminals that do not have function keys or
have function keys improperly described in terminfo (Unix only).
A search pattern may be specified in hex or ASCII (not
simultaneously), and the search for the pattern will commence
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 6
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
from the beginning of the currently displayed record. While a
search is in progress, it may be aborted by pressing any key in
the MSDOS version, or by pressing Ctrl-\ in the UNIX version.
If Print->Record is specified, a dump in print image of the
current record is sent to a file that can be printed upon exit
from FILEZ. If Print->Whole file is specified, all records are
dumped to the print image file.
In the EDIT mode, the cursor may be positioned in the hex or
ASCII region and the unsigned chars to be modified may be
specified in hex or ASCII, respectively. In order to move
portions of the file to a copyfile, the copyfile name must first
be specified and opened. Be sure to mark the beginning and end
of the section to be moved. The copyfile is closed automatically
upon exit from filez, or when a new copyfile is specified. Data
file can be composed using this feature, and the Operate->Pad
feature appends any character you specify to the end of the copy
file. Copyfiles are always opened in the append mode so that
copyfiles from previous FILEZ sessions can be appended to.
Hex editing is the default upon entering edit mode. The ENTER
key toggles between hex and Ascii editing. The unsigned char
under edit will be displayed with the foreground and background
reveresed. If editing in hex, the corresponding unsigned char
under edit in the Ascii display will be emphasized.
The record size is 256 by default, but this value may be changed
to any value between 1 and 256 using the Set->Record size
command from the review mode.
A configuration file is optional and can be used to modify
screen colors. The configuration file must be named FILEZ.CFG
and may be located anywhere in the search path. It is a text
file containing one or more of the following records:
WINDOW,DISPLAY,<foreground>,<background>
WINDOW,ADDRESS,<foreground>,<background>
WINDOW,HEX,<foreground>,<background>
WINDOW,ASCII,<foreground>,<background>
WINDOW,HELP,<foreground>,<background>
WINDOW,STATUS,<foreground>,<background>
WINDOW,SELECT,<foreground>,<background>
WINDOW,ERROR,<foreground>,<background>
WINDOW,TABLE,<foreground>,<background>
WINDOW,PROMPT,<foreground>,<background>
WINDOW,MENU,<foreground>,<background>
Valid foreground and background colors are:
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 7
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
WHITE
Other options are:
OPTION,BITS,8
Empty lines and lines beginning with the '#' character are
ignored. The screen color specification are ignored in monochrome
mode.
o COMMENTS
This program is based on EFILE, published by Software Toolz
(d.b.a. Future Communications) in 1984 and 1986.
o RETURNS
Nothing
o APPLICATIONS
FILE
o PLATFORMS
MSDOS-S
UNIX
o AUTHOR
Todd Merriman
o REVISIONS
11/29/91
Rewrite and implement under Curses.
12/16/91
Binary search pattern would fail when searching with a unsigned char with
bit 7 set.
12/23/91
Added pattern translate
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 8
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
1/12/92
Added Cntrl-W repaint command
1/13/92
Add ASCII table view
2/21/92
Add 8-bit character display to MSDOS version
2/25/92
Revise from 1.6 to 1.7. Add pull-down menus to replace character
commands.
07/26/92
Added 'n' to search for next
01/07/93
Main menu, 'N' is now Cntrl-N, and 'E' is now Cntrl-E.
Printable characters in menus are now used for searching the menu.
01/21/93
Added set record size to section size. Changed "mark section
end" from Ctrl-Z to Ctrl-P. Also display block numbers as 1-based
to prevent user confusion.
3/3/94
Add Ctrl-F in edit mode to jump an offset in the record.
o FIXES
12/26/91
Corrected documentation concerning the names of windows to be
specified in the Configuration File.
1/13/92
Found problem disallowing color modifications for the the configuration
file for the HELP window.
2/15/92
Inadvertant ESC pressed twice sequentially exited program without
saving edits.
4/3/92
LEFT or RIGHT keys in menus now select adjacent menus.
7/5/92
Block number was always zero in the dumpfile (printfile).
01/12/93
If the input file cannot be opened read/write, it is opened
read-only and the user is notified.
o NOTICE
FILEZ is Copyright 1991 Software Toolz, Inc. - Atlanta, Georgia
All rights reserved worldwide. You are granted a limted license to
use this program, copy it, and distribute it provided that: (1) no
fee may be charged for such copying and distribution, and (2) this
program may only be distributed in its original unmodified state.
This program may not be distributed with other programs for which a
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************
********************************************************************************
17:53:03 04/01/94 Page 9
T O O L Z D O C U M E N T A T I O N
F I L E Z
********************************************************************************
fee is charged except by permission of Software Toolz, Inc.
Software Toolz, Inc.
8030 Pooles Mill Dr.
Ball Ground, GA 30107
(404) 889-8264
Internet: software@toolz.atl.ga.us
o SOURCE VERSION
@(#) filez.c 1.70 94/03/03 14:18:39
o INTRODUCTION DATE
07/29/91
o LAST FILE UPDATE
04/01/94 17:51:49 -- filez.c
********************************************************************************
T O O L Z M o d u l e D o c u m e n t a t i o n
********************************************************************************