home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
008
/
WCTUTOR!.ZIP
/
COLORSET.TXT
< prev
next >
Wrap
Text File
|
1986-08-01
|
3KB
|
73 lines
COLORSET (Automatic Color Setter) Charlie Butrico
______________________________________________________
Purpose: Memory-resident utility that sets the
foreground, background, and border colors on
color systems, and prevents attempts by
applications software to reset these colors
to gray-on-black.
Format: [d:][path]COLORSET FG/BG BORD
Remarks: While dozens of small programs can set your
screen colors, many popular programs (such as
dBASE II) will reset them to a drab gray-on-
black. The first time you execute COLORSET,
it will set your colors, remain in memory,
look for such resetting instructions, and
will instead set the colors to the ones you
specified. Later executions of COLORSET will
update the attributes only.
FG/BG is the foreground and background color
(a decimal number from 0 to 255). To
calculate FG/BG, multiply the number of the
background color by 16 and add the number of
the foreground color to it.
Example: The FG/BG number for blue text on a white
background is 113, i.e., ( (7*16) + 1 ).
The number for red text on a cyan background
is 52, i.e., ( (3*16) + 4 ).
BORD is the border number (a decimal number
from 0 to 15).
Keying just one number or using COLORSET on
an EGA will change only the foreground and
background colors.
After running COLORSET, the DOS CLS command
will clear the screen to the colors you chose
rather than to the default DOS gray-on-black.
Notes:
1. DOS does not permit you to use bright
background colors; trying a FG/BG number
higher than 127 will produce text that
blinks.
Page -6-
2. ======== COLOR CHART =========
0-Black 8-Gray
1-Blue 9-Bright Blue
2-Green 10-Bright Green
3-Cyan 11-Bright Cyan
4-Red 12-Bright Red
5-Magenta 13-Bright Magenta
6-Brown 14-Yellow
7-White 15-Bright White