Dec 142017
 
Changes VGA palette.
File VGACOLOR.ZIP from The Programmer’s Corner in
Category Display Utilities
Changes VGA palette.
File Name File Size Zip Size Zip Type
COLORS.COM 15837 10512 deflated
COLORS.DAT 34 34 stored
COLORS.DOC 5408 2070 deflated
LCOLORS.COM 11724 8719 deflated

Download File VGACOLOR.ZIP Here

Contents of the COLORS.DOC file




COLORS: VGA color setting utility



written by

Luke Lin

January 1988

Version 1.0





Introduction

When I purchased my PS/2, I was very excited about VGA and the many colors
that it was able to produce, but, almost everything in the IBM world is
written for the CGA (Color Graphics Adapter). This meant that I was still
stuck with the 8 colors for background and 16 colors for text. By messing
around with DOS interrupt 10, I stumbled on a way to replace any color
with some interesting shades of colors (I have found at least 8 different
shades of purple). With VGA, there are hundreds of shades of colors
that can be used with everyday text (thus avoiding the mundane white on
black IBM DOS prompt).


The interesting aspect of changing the palette colors is that they
remain resident for all DOS commands and some programs which do not
reset the colors. Some of these programs include:
Sidekick Norton Utilities
Turbo Pascal PC Tools
Turbo C Volkswriter 3
Turbo Prolog Procomm
PC Magazine's Utilities

This program works on VGA and I suspect it would work with EGA, but I
don't have and EGA board and monitor to test it out. This may also work
with CGA in allowing the change of colors, but I don't think there
will be any new shades available -- you can just change colors around.




The Files

These are the files included:
COLORS.COM - The color-setting program to create/edit
COLORS.DAT
COLORS.DAT - Data File for colors
(this file originally will contain my
favorite colors and shades)
LCOLORS.COM - Program to load colors without having to
go into COLORS.COM
COLORS.DOC - This documentation file



Instructions

COLORS.COM is fairly easy to run -- just type COLORS and the program
loads in the default palettes and shows the colors. The top half of
the screen will show all possible colors and backgrounds along with
their corresponding decimal equivalents. The bottom half of the screen
contains the one-key commands available to the program.

There are 16 palette numbers that can be edited (0 through 15). Palette
numbers 0 through 7 are for background and low intensity text. Palette
numbers 8 through 15 are for high intensity text.

Keystrokes are:
D increase palette number to edit
C decrease palette number to edit
F increase color number of current palette
V decrease color number of current palette
G increase color number of border
B decrease color number of border
L load color table in COLOR.DAT
S save color table in COLOR.DAT
Q Quit COLORS

Palette 0 is typically the background color for DOS
Palette 7 is typically the text color for DOS
Palette 15 is typically the highlighted text color for DOS
Palette 14 is the text color in Turbo Pascal (pre 4.0 versions)

By changing the palettes to different colors, they will remain changed
until some unruly program (such as LOTUS or DBASE3) changes them again.




Location of Files

COLORS.COM and LCOLORS.COM can be placed in the root directory or
in any subdirectory of a disk, but COLORS.DAT should be in the root
directory. If the files are in a subdirectory, it is advantageous
to set a PATH to that directory (see DOS manual). Therefore, the
program can be run while you are in any subdirectory of that disk.




Usage

Use COLORS.COM to set the colors of the palettes to your tastes and
save them. Then, anytime you want to load the palette colors to your
specifications, type LCOLORS and they will be loaded in and set.
A good place to do this would be in the AUTOEXEC.BAT file. If LCOLORS
is called from an AUTOEXEC.BAT file, the colors that are saved in the
COLORS.DAT file will automatically be loaded in everytime you boot.
Anytime that the colors are reset to plain old white on black, just
type in LCOLORS to reload the colors.

*** Remember, COLORS.DAT must be in the root directory. If the other
filees are in a subdirectory of a disk, it is a good idea to have
a PATH to that subdirectory.



One Final Formality

You may copy and distribute this program freely, provided that:
1) No fee is charged for such copying and distribution.
2) It is distributed only in its original, unmodified state.

If there are any questions, complaints, comments, suggestions,
or contributions to the programmer, please send them to:

Luke Lin
(Spring 1988 address) (Permanent Home Address)
207 East Green #8 4711 North Montello Dr.
Champaign, Illinois 61820 Peoria, Illinois 61614



 December 14, 2017  Add comments

Leave a Reply