home *** CD-ROM | disk | FTP | other *** search
- TC-COLOR
-
- Copywrite 1988 by Ramon Martinez. All rights reserved.
-
- Written by Ramon Martinez - SYSOP of PC Treasure Chest
-
- August 26, 1988
-
- -----------------------------------------------------------------------
-
-
- WHAT THIS PROGRAM DOES: Simply stated, this program will add ANSI
- colors to colorless text type files. It colors whole lines only, and
- will not color one part of a line one color and another part another
- color.
-
-
- PURPOSE OF PROGRAM: To make adding color to colorless files easy. I
- use this program to add colors to my game bulletins that do not have
- color, and other colorless file, like my directory files.
-
-
- HOW TO SETUP THE PROGRAM: This program is very easy to use. To use
- it, simply type in the EXE file name (TC-Color) followed by the name of
- a configuration file. The configuration file is a simple text file
- that must be in the format described below, and MUST have an extension
- of "CFG". An example of a valid configuration filename would be
- "GBLT7.CFG". The format of the CFG file is outlined below:
-
- Line 1: complete drive/path/filename of existing
- input file.
-
- Line 2: complete drive/path/filename of the output
- file to be created.
-
- Line 3+: number of lines to color followed by a
- comma, then the color to be used.
-
- Lines one and two do not have to contain the drive designation or a
- path, but many times you will wish to include one.
-
- Line three needs more explaining. Below is an example of what a proper
- CFG file might look like:
-
- c:\pcb\games\gblt7
- c:\pcb\games\gblt7g
- 2,yellow
- 5,blue
- 1,red
-
- What this would do is input a total of 8 lines from the file GBLT7 and
- add the ANSI color codes for yellow to the first two, the ANSI color
- codes for blue to the next five line, and the ANSI color codes of red
- to the next line and write the file GBLT7G.
-
- The valid colors are BLACK, BLUE, WHITE, YELLOW, RED, GREEN, CYAN, and
- MAGENTA. The program always uses the bold version of these colors.
- The program actually only uses the first three letters of every color,
- and case is not important. This will make it easy for you to be able
- to read the CFG txt file to check and modify as you please.
-
- This is all fine and dandy for text files that you absolutely know the
- length of. It is possible that an input file may change length! Well,
- I have provided a simple solution to this problem. If you enter a zero
- for the number of lines in the last line color specification, followed
- by a color, the program will color ALL of the remaining lines that
- color. This way, you will not have to change the CFG file every time.
- Lets say that you had a bulletin generated by your BBS that varied in
- length and had no color version generated. With TC-COLOR you could
- color the titles, lines, etc. as you like and then have the data
- colored a different color. Below is an example of a CFG file that
- would allow you to color a text file of varying length:
-
- c:\pcb\games\gblt7
- c:\pcb\games\gblt7g
- 1,red
- 1,white
- 1,blue
- 1,yellow
- 0,green
-
- The about configuration file would color the first three lines red,
- white, and blue, respectively, the fourth line yellow, and all
- REMAINING lines green. This would allow you to color the headers and
- titles to your taste, and still have color for the rest of the data.
-
-
- HOW TO USE THE PROGRAM: I would suggest that you put the EXE file in
- some sort of Utility directory that has a DOS path to it. This will
- allow you to only need one copy of the EXE file on your hard disk. If
- you do not do this, you will need a copy of the EXE file in every
- directory where you have CFG files for the EXE file. A proper command
- to use the program would be "TC-COLOR GBLT7", where TC-COLOR.EXE is
- either in a DOS path directory, or is in the current directory, and
- GBLT7.CFG is in the CURRENT directory. By naming your CFG file the
- same name as the input or output file (but with the CFG extension), you
- will always be able to tell at a glance what file is to be operated on
- with the CFG file. NOTE: when telling TC-Color what CFG file to use,
- do not actually include the CFG extenstion! If you do, the program
- will abort. CAUTION: MAKE SURE YOU HIT THE CARRIAGE RETURN IN YOUR
- TEXT EDITOR AT THE END OF THE LAST LINE. IF YOU FAIL TO DO THIS, THE
- THE PROGRAM WILL PARTIALLY PROCESS YOUR FILES AND ABORT!
-
-
- BBS ON-LINE USE: As far as I know, this program can be used on-line.
- It should not cause a BBS to drop carrier. I use it in some of my game
- door batch files to create color versions of the scoreboards
- immediately after the door program creates the fresh bulletin. Simply
- put include the proper dos command in the batch file.
-
-
- FUTURE PLANS: My next version of this program will include at least
- one more feature. Besides letting you specify a color for the
- remaining lines of a variable length file, it will allow you to specify
- a set of ALTERNATING colors so that every other line is the same color.
- This will allow for easier reading for long lists. This will kind of
- be like the "green bar" effect used on some computer paper.
-
-
- SUGGESTIONS: I will gladly accept suggestions about how to make the
- program better. Right now it was merely a simple, readable program to
- do a simple job. If you have an idea that can make it better and still
- be simple, by all means, let me know!
-
-
- DISTRIBUTION OF TC-COLOR: I claim a copywrite to this program. This
- program may be freely distributed as long as there is no charge for it
- by anyone other than myself. Basically, I don't want anyone profiting
- off my work. This program may not be sold by anyone other than the
- author.
-
-
- PAYMENT TO AUTHOR: If you like the program, I request that you do one
- of the following:
-
- 1: Send $5 to the author at the address below:
-
- Ramon Martinez
- 1501 East Chapman #338
- Fullerton, Ca 92631
-
- 2: Upload a file to my BBS listed below:
-
- PC Treasure Chest
- Fullerton, California
- (714) 738-0841
- 300/1200/2400 24 Hrs.
-
- 3: Leave a comment to me at my BBS about a bug or
- suggestion.
-
-
- I am not trying to become rich, so please do one of the three above
- choices if you like and use my simple program.
-
-
-
- -----------------------------------------------------------------------
-
-
- The following six files should be included in the ARC file:
-
- TC-COLOR.EXE Program file
- TC-COLOR.DOC This file
- TEST Example text input file
- TEST1 Example text input file
- TEST.CFG CFG file to input "TEST" & output "TESTG"
- TEST1.CFG CFG file to input "TEST1" & output "TEST1G"
- This CFG gives and example of using a zero
- in the last line of the CFG file.
-
-
- -----------------------------------------------------------------------
-
-
-
- This ARC file originated from the PC-Treasure Chest in Fullerton,
- California. The BBS runs 24 hours a day, currently has one node, and
- currently supports up to 2400 baud. We currently have 120 meg of hard
- disk space. I used currently a lot there because any one of those
- items may be upgraded soon. We run PCBoard software, and are very
- pleased with it.
-
- Thank you for your time,
-
-
- Ramon Martinez
- SYSOP-PC Treasure Chest
- OWNER-Ramsoft Enterprises
-
-
- --------------------------END OF DOCUMENTATION-------------------------
-