home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
DESKTOP
/
KEEPNAME.ZIP
/
COLORDIR.DOC
< prev
next >
Wrap
Text File
|
1992-06-02
|
6KB
|
114 lines
~0E COLORDIR V1.5 (Nov. 17, 1987)
~0C (c) by Larry Marshall
~0CCOLORDIR ~0Bcreates a four-column, sorted and color-coded
(according to the file .EXT) directory. BEWARE!! Once you've
used a color-coded directory you'll never go back to using a
monochrome directory program. In spite of the color coding
you'll find this program to be as fast or faster than most
monochrome programs and is faster than HDIR, the only other
color directory I've come across. This is because it uses
inline functions written for TURBO-C by Steve Margison. His
shareware library of functions (TURBCLIB - $25 including
source) is absolutely fabulous. He is also VERY supportive of
his users. This program has benefited from his comments and
criticisms.
You'll probably want to rename ~0CCOLORDIR~0B to something a bit easier
to type. Because of my limited memory capacities I use "D".
~0CCOLORDIR.CFG~0B is a file that you will probably want to modify. This
file contains all of the color definitions. When ~0CCOLORDIR~0B is
executed it will look for this file in the default subdirectory
and, if it doesn't find it, will then search your PATH for the
file. This allows you to have a "default" ~0CCOLORDIR.CFG~0B somewhere
along your PATH and special ~0CCOLORDIR.CFG~0B file in some subdirectories.
Those of you having earlier releases of ~0CCOLORDIR~0B should note that
the format has changed and ~0EYOU MUST CONVERT YOUR OLD ~0CCOLORDIR.CFG~0E
FILE TO THE NEW FORMAT~0B. This file contains two values written as
~0AEXT=ATTR~0B. The first values (~0AEXT~0B) are filename extents and the second
(~0AATTR~0B) is the color attribute desired for the associated file extent.
Thus "~0ACOM=15~0B" will cause .COM files to be displayed in high intensity
white. You can have up to 30 definitions in ~0CCOLORDIR.CFG~0B. The first
three definitions are special and must be placed in the order:
~0ADF=12 (color of non-matching files)
SD=13 (color of sub-directories)
SZ=14 (color of file sizes)~0B
You many, of course, change the attribute values. I have included
my default ~0CCOLORDIR.CFG~0B file as an example. If no ~0CCOLORDIR.CFG~0B
file is found during execution you will be given a rather bland
directory listing and the notice that the file was not found.
~011 blue ~022 green ~033 cyan ~044 red
~055 violet ~066 gold ~077 gray
~099 lt. blue ~0A10 lt. green ~0B11 lt. cyan ~0C12 lt. red
~0D13 lt. violet ~0E14 lt. yellow ~0F15 white~0B
Those of you with monochrome monitors will notice that several of
these options will underline the filename (there will also be blank
spots where attributes giving "dark" colors would normally be
displayed. You may also want to use reverse-video to display a
type of file. This can be done using attribute 48.
~0ELIMITATIONS~0C
COLORDIR~0B is restricted to displaying only 500 filenames. I
haven't found this much of a limitation since my largest
subdirectory contains 72 files. This limit is due to the size
of the array I build to do the sorted directory. If you're in
need of more capacity let me know. I can increase it in
future releases if demand warrants. If you list a directory
containing more files than can be placed on one screen you
will be prompted to continue before ~0CCOLORDIR~0B scrolls the
listed files off screen.
~0CCOLORDIR~0B allows normal dos pathnames and wildcards. If no
file name is entered on the command line, *.* is assumed. The
one contingency that I have not dealt with is a file request
like \dir\subdir\fname where filename has NO extent. In this
case ~0CCOLORDIR~0B will interpret "fname" to be a subdirectory.
This syntax works fine if "fname" has an extent or if you include
a period at the end of the filename.
~0EABSOLUTELY FREEWARE~0E
This program is ~0AFREE~0B. I don't want any money from anyone
using this program for their personal use. Hopefully release
of such a program under these conditions will encourage others
to do the same. When I began calling BBSs a few years ago
there were lots of really great programs to be found. Nobody
was asking for money. I used lots of those programs and
hopefully some of you will find mine useful. I fully support
the SHAREWARE concept and have registered several packages. I
feel however, that there is still room in the small program
area for FREE exchange of programs. Use this program and
distribute it freely. I only ask that you distribute the ENTIRE
package including ~0ACOLORDIR.EXE, COLORDIR.CFG, COLORDIR.DOC~0B
and ~0AREVLIST~0B. You may not however, use or distribute this
program for profit of any kind. I reserve all rights of authorship
of ~0CCOLORDIR~0B.
Any comments or criticisms of ~0CCOLORDIR~0B should be sent to me
at:
~0ELarry Marshall
Departement de biologie
Universite Laval
Ste-Foy, PQ. G1K 7P4 Canada
or
[SQUARE-HEADs] BBS
1-(418)-523-3117
FidoNet 167/201~0B
*******************************************************************