SET COLOR
Purpose
Specify screen colors
Syntax
SET COLOR TO [[<standard>] [,[<enhanced>] [,[<border>]]]] | (<expC>)
SET COLOR ON | OFF | (<expL>)
See Also
@...FILL, @...GET, @...SAY, @...TO, CLEAR, ISCOLOR(), RESTORE COLOR, SAVE COLOR, SCHEME(), SET COLOR OF, SET DISPLAY, SETCOLOR()
Description
The SET COLOR command controls the color and display attributes of the screen. You can define the color settings of the screen or individual display areas on the screen. The color settings are changed by specifying the letter codes for each color.
Color | Attribute Letter |
---|---|
BLACK | N or blank |
BLUE | B |
CYAN | BG |
BLANK | X |
GREY | N+ |
RED | R |
MAGENTA | RG |
BROWN | GR |
YELLOW | GR+ |
WHITE | W |
Each color code can be specified as a pair, separated with a ’/’, which will change the foreground/background color.
The SET COLOR TO (<expC>) is used to assign color settings to memory variables. In this way users may select color settings.
The SET COLOR TO <standard> command will change the standard color display areas on the screen. For machines that allow you to set different colors for standard and enhanced text areas, set the <standard> and <enhanced> colors in pairs as foreground/background colors. You can change one or more color attributes at the same time. The position of commas indicates the setting you want to change. For example, to set the enhanced area to white without affecting the other settings, you would type SET COLOR TO ,W. In specifying foreground/background pairs, you can omit the foreground or background color. When you do not specify a color, either before or after the ’/’ in the foreground/background pair, the color black is selected.
The SET COLOR TO command without qualifiers resets colors to default settings.
The SET COLOR ON | OFF command switches the color back and forth between monochrome and color.
Example
set color to GR+/B && set the color yellow on blue background = "GR" set color to (foreground + "/" + background)
Products
Recital Mirage Server, Recital Terminal Developer