Color resources (c3270)
Host colors
The following resources define how host colors are mapped to curses colors in c3270.
They are only used when c3270 is emulating a 3279 (color) display.
Host Color | Resource Name and Alias |
Type | Default | |
---|---|---|---|---|
8-color terminal | 16-color terminal | |||
X'00' | cursesColorForHostColorNeutralBlack cursesColorForHostColor0 |
string | black | black |
X'01' | cursesColorForHostColorBlue cursesColorForHostColor1 |
string | blue | intensified-blue |
X'02' | cursesColorForHostColorRed cursesColorForHostColor2 |
string | red | red |
X'03' | cursesColorForHostColorPink cursesColorForHostColor3 |
string | magenta | intensified-magenta |
X'04' | cursesColorForHostColorGreen cursesColorForHostColor4 |
string | green | intensified-green |
X'05' | cursesColorForHostColorTurquoise cursesColorForHostColor5 |
string | cyan | intensified-cyan |
X'06' | cursesColorForHostColorYellow cursesColorForHostColor6 |
string | yellow | intensified-yellow |
X'07' | cursesColorForHostColorNeutralWhite cursesColorForHostColor7 |
string | white | intensified-white |
X'08' | cursesColorForHostColorBlack cursesColorForHostColor8 |
string | black | black |
X'09' | cursesColorForHostColorDeepBlue cursesColorForHostColor9 |
string | blue | blue |
X'0A' | cursesColorForHostColorOrange cursesColorForHostColor10 |
string | yellow | intensified-red |
X'0B' | cursesColorForHostColorPurple cursesColorForHostColor11 |
string | magenta | magenta |
X'0C' | cursesColorForHostColorPaleGreen cursesColorForHostColor12 |
string | green | green |
X'0D' | cursesColorForHostColorPaleTurquiose cursesColorForHostColor13 |
string | cyan | cyan |
X'0E' | cursesColorForHostColorGray cursesColorForHostColor14 |
string | black | white |
X'0F' | cursesColorForHostColorWhite cursesColorForHostColor15 |
string | white | intensified-white |
Attribute-based colors
The following resources define the curses colors used to display fields based on their attributes, if the host does not specify a color.
They are only used when c3270 is emulating a 3279 (color) display.
Resource Name | Field Attribute | Type | Default | |
---|---|---|---|---|
8-color terminal | 16-color terminal | |||
cursesColorForDefault | Not protected, not intensified | string | green | intensified-green |
cursesColorForIntensified | Not protected, intensified | string | red | red |
cursesColorForProtected (note 1) | Protected, not intensified | string | blue | intensified-blue |
cursesColorForProtectedIntensified | Protected, intensified | string | white | intensified-white |
(1) This resource also defines the curses color used to display the main parts of the c3270 Operator Information Area.