home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR36
/
VF120.ZIP
/
VF.DOC
< prev
next >
Wrap
Text File
|
1993-08-28
|
15KB
|
516 lines
VF ver. 1.20
A Product of Chenango Shoreware
Copyright 1993 by G. Vrooman
All rights reserved
VF is a fast, powerful text file viewer that:
Will recognize VI editor commands.
Can handle files containing over 150,000 lines depending on available
memory.
Will configure itself to use existing screen colors. Colors can
also be configured from the environment.
Will adapt itself to virtually any text mode including 132 column
modes. Video mode can be specified as an option.
Can display lines either numbered or unumbered.
SYSTEM REQUIREMENTS: Hard disk, Any Monitor, 256k, IBM Compatible
BIOS and DOS 3.0 or later.
SUPPORT: If you have any questions or comments about VF you
can write me at the address below:
Gerald M. Vrooman
6400 NY RT 79
Chenango Forks, NY
13746
INSTALLING VF
Just copy the files to any convenient directory and make sure that
the directory is included in the PATH statement in your AUTOXEC.BAT
file.
CONFIGURING VF
Under ordinary circumstances, VF is self-configuring and will
adapt itself to existing screen colors and screen size. To provide
an additional degree of flexibility screen colors can be set from
the environment. This is done by setting the environment variable
VFCOLORS to the desired colors. eg:
SET VFCOLORS=6E6F7F
char 1-2 Normal screen colors for VF. These are hex numbers
and correspond to standard DOS color attributes.
The first digit ranges from 0 to 7 and sets the
background color. The second digit ranges from 0 to
F and sets the foreground color.
char 3-4 Highlighted text search colors for VF. Same as above.
char 5-6 Menu bar colors for VF.
DOS SCREEN COLOR CODES
NORMAL BRIGHT / BLINK
0 BLACK 8 BLACK
1 BLUE 9 BLUE
2 GREEN A GREEN
3 CYAN B CYAN
4 RED C RED
5 MAGENTA D MAGENTA
6 AMBER E YELLOW
7 WHITE F WHITE
If a number between 8 and F is used for a foreground color you
will get bright text. If it is used for background you will
get blinking text.
NAME:
VF View File
SYNTAX:
vf Read from standard input.
vf [-##b][+##][+\string] file Displays contents of file one
page at a time.
vf dir Lists directory and allows you
to choose file.
SWITCHES:
+### Begin displaying at line ###.
+\string Begin displaying at first occurrence of string.
-## Set display adaptor to mode ##.
-b Write to BIOS instead of video memory.
DESCRIPTION:
VF is a text file viewer which can read files containing
up to 150,000 lines. For the convenience of UNIX oriented users
VF will recognize most relevant VI editor commands. VF also makes
full use of the cursor and function keys and is similar in feel
to other DOS file viewers. To use VF merely type VF and the name
of the file that you would like to read. For example:
vf dosnix.doc
Wild cards and multiple arguments can be used to view several files
in sequence. For example:
vf *.doc
can be used to page through all .DOC files, and
vf whats.new quickref.doc
will first read WHATS.NEW, then QUICKREF.DOC.
When VF begins, it will display one page of text and then pause.
You can then enter one of the following commands:
COMMAND FUNCTION VI/EX EQUIVALENT
Home Move to beginning of file. 1G, :1
End Move to end of file. G, :$
<PgDn> Display next page. ^F
<PgUp> Display previous page. ^B
^L
Down Arrow Display next line of text. j
Up Arrow Move back one line. k
Right Arrow Shift screen one tab stop right.
Left Arrow Shift screen one tab stop left.
] Display next half page of text. ^D
[ Move back one half page. ^U
F1, h Display help page.
F2, \ Search text for string. Ignore case.
ShF2, | Search backwards. Ignore case.
F3 Search for next occurrence of string. n
F4 Select new file from directory.
F5 Change file mask.
F6 Toggle line numbers. :set nu
:set nonu
F7 Shell to DOS. :sh
F8 Search text for string. Match case. /
ShF8 Search backwards. Match exact case. ?
F9 Reverse direction of search. N
F10, q Terminate the program. :q
-###, Move back ### lines. :-###
+###, Move forward ### lines. :+100
### Move to line number ###. ###G, :###
^L Rewrite current page. ^L
:n Read next file. :n
:p Read previous file.
The escape key can be used to interrupt text searches and exit
the help screen. It will also terminate the program from the main
menu. F10 or Del can be used in place of Esc and ^PgUp and ^PgDn
can be used in place of Home and End.
The number of the top line is displayed on the menu bar unless
the end of file message is visible. Then the line number displayed
will be the last line of the file. Unless the file is very small,
you can use Esc to realign the last page and get rid of the message.
If the number keys are used to go to a line already on the screen,
the screen will scroll until the line is at the top. Otherwise the
screen will clear and a new page will be displayed.
The number of every line can be displayed by pressing F6. Line
numbers will be displayed on the right hand side of the screen and
will overwrite the last few columns of text. Pressing the Right
arrow key will shift the screen and allow you to read any text that
is covered.
You can choose a new file from the directory by pressing F4. The
current directory will be displayed and you can use the arrow keys
to choose either a new file or a new directory. You can start the
program in this mode by using a directory as an argument. Pressing
F5 while in this mode will allow you to change the file mask.
You can also choose a new file by pressing F5 from the main
program. You will then be given an opportunity to enter a new
file name.
Text searches can be done by typing a "\" (F2) or a "/" (F8).
You will then be prompted to enter a search string. VF will begin
displaying ten lines before the line containing the search string and
the matching line will be highlighted. The "\" command will ignore
differences between upper and lower case. The "/" command will find
only strings having the exact case as the search string. Using the
shift key with with either of these commands (ie. "|" or "?") will
search backwards through the file for any previous occurence of a
string. Typing a "n" or F3 will continue searching in the same
direction while "N" or F9 will search in the opposite direction.
VF also has several options which can be used from the command
line. If the +\string switch is used, VF will search the first
occurrence of "string" before displaying. For example:
vf +\ffind dosnix.doc
will scan DOSNIX.DOC for the first occurrence of "ffind" and
begin displaying ten lines before the first matching line.
Case sensitive searches can also be initiated from the command
line.
When +### is used as a switch, VF will begin displaying at
whatever line number is given after the plus sign. For example:
vf +300 dosnix.doc
will begin displaying at line 300.
Normally VF writes text directly to video memory. If the -b
option is used VF will use the video BIOS to write text. If
you have a CGA monitor and are having trouble with "snow" the
-b option will eliminate it.
An option has been provided to change the mode of your display
adaptor. To use this option type
vf -# filename
where # is the number of the new mode in decimal. # can be any
valid text mode and you should check the manual for your graphics
card to see what modes are supported. Common text modes are listed
below:
Standard Text Modes
Mode Card Format
0 CGA 40 X 25 Black & White
1 CGA 40 X 25 Color
2 CGA 80 X 25 Black & White
3 CGA 80 X 25 Color
7 Monochrome 80 X 25 Black & White
EGA and VGA cards support all of the above modes but VGA does not
distinguish beetween CGA Color and Black & White modes.
Extended Text Modes
Trident TVGA BIOS
Mode Format
80 (50h) 80 X 30
81 (51h) 80 X 43
82 (52h) 80 X 60
83 (53h) 132 X 25
84 (54h) 132 X 30
85 (55h) 132 X 43
86 (56h) 132 X 60
Tseng ET-4000
Mode Format
34 (22h) 132 X 44
35 (23h) 132 X 25
36 (24h) 132 X 28
38 (26h) 80 X 60
These are the only cards I have data for. If I have omitted
your favorite display adaptor send me the mode numbers and I
will add them to the docs.
ABOUT SHAREWARE
Shareware distribution gives users a chance to try software
before buying it. If you try a Shareware program and continue
using it, you are expected to register. Individual programs
differ on details -- some request registration while others
require it, some specify a maximum trial period. With registration,
you get anything from the simple right to continue using the software
to an updated program with printed manual.
Copyright laws apply to both Shareware and commercial software,
and the copyright holder retains all rights, with a few specific
exceptions as stated below. Shareware authors are accomplished
programmers, just like commercial authors, and the programs are
of comparable quality. (In both cases, there are good programs
and bad ones!) The main difference is in the method of distribution.
The author specifically grants the right to copy and distribute the software, either to all and sundry or to a specific group. For
example, some authors require written permission before a commercial
disk vendor may copy their Shareware.
Shareware is a distribution method, not a type of software.
You should find software that suits your needs and pocketbook,
whether it's commercial or Shareware. The Shareware system makes
fitting your needs easier, because you can try before you buy.
And because the overhead is low, prices are low also. Shareware
has the ultimate money-back guarantee -- if you don't use the
product, you don't pay for it.
DISCLAIMER - AGREEMENT
Users of VF must accept this disclaimer of warranty:
"VF is supplied as is. The author disclaims all warranties,
expressed or implied, including, without limitation, the
warranties of merchantability and of fitness for any purpose.
The author assumes no liability for damages, direct or conse-
quential, which may result from the use of VF."
VF is a "shareware program" and is provided at no charge to
the user for evaluation. Feel free to share it with your friends,
but please do not give it away altered or as part of another system.
The essence of "user-supported" software is to provide personal
computer users with quality software without high prices, and yet to
provide incentive for programmers to continue to develop new products.
If you find this program useful and find that you are using VF and
continue to use VF Utilities after a reasonable trial period, you
must make a registration payment of $15.00 to the author. The $15.00
registration fee will license one copy for use on any one computer
at any one time. You must treat this software just likea a book.
An example is that this software may be used by any
number of people and may be freely moved from one computer
location to another, so long as there is no possibility of it
being used at one location while it's being used at another.
Just as a book cannot be read by two different persons at the
same time.
Commercial users of VF must register and pay for their
copies of VF within 30 days of first use or their license
is withdrawn. Site-License arrangements may be made by
contacting the author.
Anyone distributing VF for any kind of remuneration must
first contact the author at the address below for authorization.
This authorization will be automatically granted to distributors
recognized by the Association of Shareware Professionals as adhering
to its guidelines for shareware distributors, and such distributors
may begin offering VF immediately (However the author must
still be advised so that the distributor can be kept up-to-date with
the latest version of VF).
You are encouraged to pass a copy of VF along to your friends for
evaluation. Please encourage them to register their copy if they find
that they can use it. Fully registered users will receive a copy of
the latest version of VF along with several bonus utilities.
VF will eventually become the standard text file viewer for
DOSNIX and is currently being shipped with the registered version.
This means that you can register VF either separately for $15.00
or with DOSNIX for $35.00. To register your copy of VF or to purchase
a site license, fill out the form and mail it to the author at the
address below:
Gerald M. Vrooman
6400 NY Rt 79
Chenango Forks, NY
13746
VF REGISTRATION (ver. 1.20)
NAME: ____________________________________________________________
ADDRESS: ____________________________________________________________
____________________________________________________________
____________________________________________________________
____ Full registration @ $15.00
(Includes a copy of the latest version
and bonus utilities.) ____________
____ Basic Site License @ $40.00
(Up to three computers) ____________
____ Additional computers @ $12.00 ____________
____ DOSNIX registration @ $35.00
(Includes VF) ____________
Total amount enclosed ____________
Please circle one: 5.25" disk 3.5" disk