TEXCOLOR

Specifies the color index of the color used to draw text strings
Operating state: GKOP, SGOP, WSAC, WSOP
Default: 1

Syntax

return-code-variable=GSET('TEXCOLOR', color-index);

Required Argument

color-index
numeric constant or numeric variable name; indicates the color index of the color to be used. Valid values are 1 to 256, inclusive.

Return Codes

This function returns:

Details

The GSET('TEXCOLOR', . . . ) function selects the color for text. The aspect source flag (ASF) of TEXCOLOR must be set to 'INDIVIDUAL' for this attribute to be used outside of a text bundle.
The value of GSET('TEXCOLOR', . . . ) can be used in a text bundle. See the TEXREP for information about how to define a text bundle.
DSGI searches for a color specification in the following order:
  1. the color specified for the index in a GSET('COLREP', . . . ) function
  2. the nth color from the color list of the COLORS= graphics option
  3. the nth color in the device's default color list found in the device entry