Color resources (wc3270)

From The x3270 Wiki
Revision as of 02:37, 29 July 2022 by Pmattes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Host colors

These resources define how host colors are mapped to Windows console colors in wc3270.

The value of each resource is an index into the set of Windows console colors. The default console colors are:

Console-colors.png

Color 0 is black, color 1 is dark blue, color 2 is dark green, etc., and index 15 is white.

These resources are only used when wc3270 is emulating a 3279 (color) display. When wc3270 is emulating a 3278 (monochrome) display, all text that is not intensified uses console color 2 (green) and intensified text uses console color 10 (light green).

Host Color Resource Name
and Alias
Type Default
X'00' consoleColorForHostColorNeutralBlack
consoleColorForHostColor0
integer 0
X'01' consoleColorForHostColorBlue
consoleColorForHostColor1
integer 9
X'02' consoleColorForHostColorRed
consoleColorForHostColor2
integer 12
X'03' consoleColorForHostColorPink
consoleColorForHostColor3
integer 13
X'04' consoleColorForHostColorGreen
consoleColorForHostColor4
integer 10
X'05' consoleColorForHostColorTurquoise
consoleColorForHostColor5
integer 11
X'06' consoleColorForHostColorYellow
consoleColorForHostColor6
integer 14
X'07' consoleColorForHostColorNeutralWhite
consoleColorForHostColor7
integer 15
X'08' consoleColorForHostColorBlack
consoleColorForHostColor8
integer 0
X'09' consoleColorForHostColorDeepBlue
consoleColorForHostColor9
integer 1
X'0A' consoleColorForHostColorOrange
consoleColorForHostColor10
integer 12
X'0B' consoleColorForHostColorPurple
consoleColorForHostColor11
integer 5
X'0C' consoleColorForHostColorPaleGreen
consoleColorForHostColor12
integer 2
X'0D' consoleColorForHostColorPaleTurquiose
consoleColorForHostColor13
integer 3
X'0E' consoleColorForHostColorGray
consoleColorForHostColor14
integer 7
X'0F' consoleColorForHostColorWhite
consoleColorForHostColor15
integer 15

Attribute-based colors

The following resources define the host colors used to display fields based on their attributes, if the host does not specify a color.

They are only used when wc3270 is emulating a 3279 (color) display.

Resource Name Field Attribute Type Default
hostColorForDefault Not protected, not intensified string green
cursesColorForIntensified Not protected, intensified string red
cursesColorForProtected Protected, not intensified string blue
cursesColorForProtectedIntensified Protected, intensified string neutralWhite