Difference between revisions of "SET COLOR"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET COLOR=
 
 
 
==Class==
 
Screen Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Specify screen colors
 
Specify screen colors
Line 12: Line 5:
 
==Syntax==
 
==Syntax==
 
SET COLOR TO [[<standard>] [,[<enhanced>] [,[<border>]]]] | (<expC>)
 
SET COLOR TO [[<standard>] [,[<enhanced>] [,[<border>]]]] | (<expC>)
 +
 
SET COLOR ON | OFF | (<expL>)
 
SET COLOR ON | OFF | (<expL>)
  
  
 
==See Also==
 
==See Also==
CLEAR, @...FILL, @...GET, @...SAY, @...TO, SAVE COLOR, RESTORE COLOR, ISCOLOR(), SETCOLOR()
+
[[@...FILL]], [[@...GET]], [[@...SAY]], [[@...TO]], [[CLEAR]], [[ISCOLOR()]], [[RESTORE COLOR]], [[SAVE COLOR]], [[SCHEME()]], [[SET COLOR OF]], [[SET DISPLAY]], [[SETCOLOR()]]
  
  
Line 22: Line 16:
 
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.
 
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
+
{| class="wikitable"
 +
!Color||Attribute Letter
 
|-
 
|-
 
|BLACK||N or blank
 
|BLACK||N or blank
Line 46: Line 41:
 
|-
 
|-
 
|}
 
|}
 +
  
 
Each color code can be specified as a pair, separated with a ’/’, which will change the foreground/background color.
 
Each color code can be specified as a pair, separated with a ’/’, which will change the foreground/background color.
Line 59: Line 55:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
set color to GR+/B             && set the color yellow on blue
+
set color to GR+/B   && set the color yellow on blue
 
background = "GR"
 
background = "GR"
set color to (foreground + "/" + background)</pre>
+
set color to (foreground + "/" + background)</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|COLOR]]
 +
[[Category:Screen Environment]]
 +
[[Category:Screen Environment Set 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