Difference between revisions of "SET COLOR"
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Specify screen colors | Specify screen colors | ||
Line 14: | Line 10: | ||
==See Also== | ==See Also== | ||
− | [[@...FILL]], [[@...GET]], [[@...SAY]], [[@...TO]], [[CLEAR]], [[ISCOLOR()]], [[RESTORE COLOR]], [[SAVE COLOR]], [[SETCOLOR()]] | + | [[@...FILL]], [[@...GET]], [[@...SAY]], [[@...TO]], [[CLEAR]], [[ISCOLOR()]], [[RESTORE COLOR]], [[SAVE COLOR]], [[SCHEME()]], [[SET COLOR OF]], [[SET DISPLAY]], [[SETCOLOR()]] |
Line 66: | Line 62: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 16:51, 12 November 2009
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