home *** CD-ROM | disk | FTP | other *** search
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
-
- 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
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
-
- E Enter edit mode
-
- 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
-
- Set to last record (end) of file
-
- Beginning
-
- Set to first record (Beginning) of file
-
- Next 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
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
- 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
-
- Search
-
- String
-
- Search for a string from the current record
-
- Pattern
-
- Search for a pattern of bytes from the current record
-
- Next
-
- Search for the next occurance
-
- Translate
-
- String
-
- Translate one string to another
-
- Pattern
-
- Translate one pattern to another
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
-
- 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
-
- Whole file
-
- Dump the file to a print image file
-
-
- COMMANDS IN EDIT 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
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
- 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-Z 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
-
- 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.
-
- 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 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 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
- 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.
-
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
- 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 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:
-
- 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 in
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
- 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
- Added pattern translate
- 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.
-
- 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
-
-
- ********************************************************************************
- T O O L Z M o d u l e D o c u m e n t a t i o n
- ********************************************************************************
-
-
- ********************************************************************************
- 16:03:08 03/07/92 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
- ********************************************************************************
-
-
- saving edits.
-
- 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 and
- DOCZ brochure.
-
- Software Toolz, Inc.
- 8030 Pooles Mill Dr.
- Ball Ground, GA 30107-9610
- (706) 889-8264
- Internet: software%toolz.uucp@mathcs.emory.edu
-
- o INTRODUCTION DATE
-
- 07/29/91
-
- o LAST FILE UPDATE
-
- 03/07/92 16:02:25 -- 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
- ********************************************************************************
-