Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ color(1A) — Amiga System V Release 4 Version 2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

color(1A)  —  MISC REFERENCE MANUAL PAGES

NAME

color − set or show screen colors

SYNOPSIS

color [-bc color] [-fc color] [-cnn color] [-over] [-showall]

DESCRIPTION

Typing color without any arguments shows the colors relevant for your screen.  The foreground color is set by using the -fc option followed by the name of a color.  A color name may be one of the standard colors: black, blue, green, cyan, red, magenta, yellow, and white.  You may also construct a shaded color by giving a hexadecimal number for a name. 

The following options are recognized by color:

-bc This sets the background color.  You must specify the name of a color after the -bc option. 

-fc This sets the foreground color.  A color must be specified after the -fc option. 

-cnn This sets color nn to the specified color.  Note that color 00 is the background color and color 01 is the foreground color. 

-over An attempt is made to prevent you from setting the same color as your background and foreground.  This option lets you override the check. 

-showall
Shows the entire color map.

In its simplest form, a shaded color is given by typing a three digit hexadecimal number.  The first digit is the red component, the second is the green while the third corresponds to blue.  The colors are additive.  Thus F0F would give a magenta color (red and blue). 

In its more complex form, colors have a gray scale componenet and a red/green/blue (rgb) component.  Both the gray scale and the rgb components are maintained and may be set separately.  The rgb component is used when a color monitor is configured while the gray scale component is in effect when using a monochrome monitor. 

The rgb component may be a three digit hexadecimal number as in the simple form or it may be a six digit hexadecimal number.  In the case of a six digit number, the red component corresponds to the first two hex digits, the next two are green and the final two are blue.  The gray scale component may either be a single or dual digit hex number.  The color is specified by concatenating the single or dual digit gray scale component with the three or six digit rgb component. 

EXAMPLES

Set the background to be white and the characters to be red:

color -bc white -fc red

Set your colors so that the characters are grey and the background is lavender with the gray scale component set to black for the background and white for the foreground:

color -bc 00545 -fc F686868

Note that the rgb component of the background is 504050 and the gray scale component of the background is 00 (black).  The rgb component of the foreground is 686868 while the gray scale component is F0 (almost completely white). 

Show your current color settings:

color

SEE ALSO

Getting Started chapter in the Using Amiga Unix manual. 

Amiga Unix  —  Last change:

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026