SAS 9.1 Companion For Unix Enivronments

Methods for Customizing the Color Settings in Your SAS Session

SAS ships to all sites a default set of colors and attribute settings for the elements of all SAS windows . You can customize the colors in your SAS session

Customizing Colors using the SASCOLOR Window

You can use the SASCOLOR window to change the color and highlighting of specific elements of SAS windows. To open the SASCOLOR window, issue the SASCOLOR command or select Tools – Options – Colors

Display 3.8: SASCOLOR Window

To change a color for a window element, select the element name , and then select color and attribute that you want assigned to the element.

The BLINK attribute is not supported. The HIGHLIGHT attribute causes text to be displayed in bold font.

When you select Save , your changes are saved to the catalog entry SASUSER.PROFILE.SAS.CPARMS.

Note  

Close and reopen any active windows for new color settings to take effect.

For more information about the SASCOLOR window, see the SAS Help and Documentation.

Syntax of the COLOR Command

You can use the COLOR command to set the color for specific elements of the active window:

color field-type < color NEXT < highlight >>

field-type

color

NEXT

highlight

To save your changes, issue the WSAVE command. The changes are saved to SASUSER.PROFILE. window .WSAVE.

Note  

The WSAVE command is not available for all SAS windows. For example, with SAS/FSP or SAS/CALC software, changes are saved either through the EDPARMS or the PARMS window. (To determine whether WSAVE is available for a SAS window, refer to the product documentation.)

For more information on the COLOR and WSAVE commands, see SAS Help and Documentation.

Defining Color Resources

Types of Color Resources

Color resources fall into two categories:

foreground and background definitions

window element definitions

These two types of resources work together. The CPARMS color values use the current foreground and background definitions. For example, the following resources specify that the background of your primary windows will be CornflowerBlue:

SAS.blueBackgroundColor: CornflowerBlue SAS.cparmBackground: DmBlue

Specifying RGB Values or Color Names for Foreground and Background Resources

SAS uses SAS.systemBackground , SAS.systemForeground , and the resources listed in the following table to determine the colors to be used in its windows.

SAS.systemForeground: color

SAS.systemBackground: color

SAS.systemSecondaryBackground: color

You can specify color names such as MediumVioletRed or RGB values such as #0000FF for all of the foreground and background resources. Refer to your X Window System documentation for information on RGB color values.

The following table lists all of the foreground and background color resources and their class names. All of these resources are of the type String.

Defining Colors and Attributes for Window Elements (CPARMS)

You can define the colors and attributes for specific window elements by assigning values to SAS resources known as CPARMS. Each CPARMS resource defines the color and attribute of a specific window element, such as the background in a secondary window or the border of a primary window.

You can specify multiple color and attribute names in the same resource definition, but only the final color and attribute will be used:

SAS.cparm Resource : DmColorName DmAttrName \ <+ DmColorName DmAttrName >

Resource can be any of the CPARMS resources listed in the following table. All of these resources are of type DmColor, and their default values are dynamic ”that is, the default values are determined at run time.

DmColorName can be any one of the following colors:

DmAttrName can be any one of the following attributes:

For example, the following resources specify that all background colors are gray and all foreground colors are black:

SAS.cparmBackground: DmGRAY SAS.cparmForeground: DmBLACK

These resources specify that errors should be displayed in red with reverse video, and warnings should be displayed in yellow with reverse video and a bold font:

SAS.cparmError: DmRED + DmREVERSE SAS.cparmWarning: DmHIGHLIGHT + DmYELLOW + DmREVERSE

SAS looks for default CPARMS resources in two places:

Controlling Contrast

During interactive move/stretch operations, such as rubberbanding and dragging rectangles in SAS/INSIGHT software, you might find it hard to see the outline of the graphics primitive because of the lack of contrast between the primitive and the background. The XCONTRAST command makes the primitive visible against the background. The rendering performance and the aesthetic appearance of the primitive is compromised for the sake of visibility. You can enter XCONTRAST to act as a toggle, or you can specify XCONTRAST ON or XCONTRAST OFF.

In some color combinations, text fields, push buttons , check boxes, and other foreground categories might not be visible. The SAS.dmsContrastCheck resource makes these categories legible.

SAS.dmsContrastCheck: True False

Категории