home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Big Blue Disk
/
bbdbest.zip
/
COLOR.TXT
< prev
next >
Wrap
Text File
|
1987-09-14
|
2KB
|
40 lines
|D╔══════════════════╗════════════════════════════════════════════════════════════
|D║ |5The Happy Hacker |D║════════════════════════════════════════════════════════════
|D╚══════════════════╝════════════════════════════════════════════════════════════
^C^1THE COLOR COMMAND
^Cby
^CGeorge Leritte
George's COLOR command lets you set screen colors to the foreground/
background combination of your choice by simply entering information at a DOS
prompt:
^1COLOR [fg],[bg],[br]
The "FG" parameter sets the foreground color. The IBM has 16 foreground
colors; enter a number between 0 and 15 here. The "BG" parameter sets the
background color; sixteen colors (0-15) are possible. Finally, "BR" sets the
border color; the border can be made any of 16 colors (0-15). Add 16 to the
foreground to get blinking letters; however, blinking foreground is overridden
if you choose high-intensity background (colors 8-15). High intensity
background does not work on the PCjr. Note that all of these parameters are
optional. If you do not enter any parameters, the default colors will be used.
Just remember that commas must be kept in the command and that spaces do not
count. For example, if you like the default foreground and background color,
but would like to change the border color, you would enter:
^1COLOR ,,[br]^0.
The default screen uses a bright white foreground on top of a blue background
with a red border. With a little work, however, you can change the COLOR
command's default setting. The third byte of the program contains the default
border color. The fourth byte of the program contains the default attribute,
the byte which contains background and foreground color information.
To learn more about IBM screen colors, consult Joel Rea's video tutorial
series and George's COLOR TEST that we ran in BIG BLUE DISK #6.
DISK FILES THIS PROGRAM USES:
^FCOLOR.COM