home *** CD-ROM | disk | FTP | other *** search
-
-
- ********************************************************************************
- 08:58:29 12/30/91 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 byte 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
-
- Q Quit filez
- Also: ESC
- A Find the record for the specified address offset
- B Set to first record (Beginning) of file
- Also: HOME
- C Toggle Ignore Search Case (string mode search)
- D Dump the file to a print image file
- E Enter the EDIT mode at the current record
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 08:58:29 12/30/91 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
- ********************************************************************************
-
-
- F Specify a new file to edit without exiting filez
- H Set Record size (maximum 256)
- I Insert copyfile into current file at section beginning
- J Translate one string to another
- K Translate one pattern to another
- M Move (copy) a marked section of the file to copyfile
- (must be 'O'pened first)
- N Set the current record number
- O Specify output file (copyfile)
- P Dump the current record to print image
- R Search/translate for the next occurance
- S Search for a string from the current record
- T Search for a pattern of bytes from the current record
- U Pad the copyfile with a specified character
- V Delete the currently marked section from the file
- W Write the current record to the file
- X Extend the file with a specified character
- Z Set to last record (end) of file
- Also: END
- DOWN Next record
- Also: Down-Arrow, +
- UP Previous record
- Also: Up-Arrow, -
- ? Display review mode help
- Also: F1
-
- COMMANDS IN EDIT MODE
-
- UP Move cursor up one line (keyboard up arrow)
- Also: Control-E, Control-I
- DOWN Move cursor down one line (keyboard down arrow)
- Also: Control-X, Control-K
- LEFT Move cursor left one character (keyboard left arrow)
- Also: Control-S, Control-J
- (Unix note: do not use Control-S if software
- handshaking is enabled)
- RIGHT Move cursor right one character (keyboard right arrow)
- Control-D, Control-L
- Control-B Mark beginning of section at cursor
- Control-Z Mark end of section
- ENTER Toggle hex/ASCII mode
- ESC Exit editing mode
- F1 Display edit mode help
- Also: Control-H
-
- 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.
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 08:58:29 12/30/91 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
- ********************************************************************************
-
-
-
- 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 not properly described in terminfo.
-
- A search pattern may be specified in hex or ASCII (not
- simultaneously), and the search for the pattern will commence 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 Control-\ in the UNIX version.
-
- If 'P' (print) 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
- 'D' (dump) 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 bytes 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
- 'U' 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 byte under edit will be
- displayed with the foreground and background reveresed. If editing
- in hex, the corresponding byte 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 'H' 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,PROMPT,<foreground>,<background>
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 08:58:29 12/30/91 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
- ********************************************************************************
-
-
- foreground/background are reversed in the PROMPT window
- WINDOW,ERROR,<foreground>,<background>
-
- Valid foreground and background colors are:
-
- BLACK
- RED
- GREEN
- YELLOW
- BLUE
- MAGENTA
- CYAN
- WHITE
-
- 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 in
- 1986. FILEZ, however, is substantially rewritten and based on
- Curses.
-
- 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 byte with
- bit 7 set.
- 12/23/91
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 08:58:29 12/30/91 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
- ********************************************************************************
-
-
- Added pattern translate
-
- o FIXES
-
- 12/26/91
- Corrected documentation concerning the names of windows to be
- specified in the Configuration File.
-
- 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
- fee is charged except by permission of Software Toolz, Inc.
-
- This program may be registered from Software Toolz for $19.95
- plus shipping and handling. Visa and MasterCard are accepted.
- Registration entitles you to the latest update on magnetic
- media and a printed user manual. You are urged to register
- this software if you find it to be of use to you.
-
- You are invited to evaluate DOCZ(tm), the code documentation
- automation facility for MSDOS and UNIX. DOCZ works with all computer
- languages, and it builds reference manuals and on-line documentation
- for software modules with documentation imbedded in the source code.
- Call or write Software Toolz for the FREE MSDOS demo version.
-
- Software Toolz, Inc.
- 8030 Pooles Mill Dr.
- Ball Ground, GA 30107-9610
- (800) 869-3878, (404) 889-8264
- Area Code 404 will be changed to 706 on 3 May 1992
- Internet: software%toolz.uucp@mathcs.emory.edu
-
- o INTRODUCTION DATE
-
- 07/29/91
-
- o LAST FILE UPDATE
-
- 12/30/91 08:57:47 -- 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
- ********************************************************************************
-