If the monochrome mode is selected, the color mapping is performed as described below. For each character on the screen:
If background intensity is set then the blink attribute is set.
If foreground intensity is set then the bold attribute is set.
If the character is blue then the underscore attribute is set.
If background
intensity is greater than foreground intensity then the inverse attribute is set
as follows:
I = .3 * R + .6 * G + .1B
The intensity bit is not used in the above calculation. The attributes are additive.
Certain color combinations displayed by the application do not display in a satisfactory way when converted to monochrome. This may be especially true when using monochrome RF devices. The Georgia SoftWorks Telnet Server provides a mechanism to allow custom color mapping to monochrome displays.
The telnet server upon startup reads the file “colormap.txt”. This file defines the color to monochrome mappings. The text file contains 256 rows that represent all foreground and background color combinations and associated default monochrome mappings.
You may edit the file and alter the monochrome mappings to obtain the desired effects. You can then experiment to get the exact mappings desired. The format of the text file follows.
Legend: I:
Intensity R: Red, G: Green, B: Blue
#Foreground
Background Your
monochrome(re)mapping
#I
R G
B I
R G
B BLINK
INT UND
INV
0
0 0
0 0
0 0
0 0
0 0
0
0
0 0
1 0
0 0
0 0
0 1
0
0
0 1
0 0
0 0
0 0
0 0
0
0
0 1
1 0
0 0
0 0
0 0
0
0
1 0
0 0
0 0
0 0
0 0
0
0
1 0
1 0
0 0
0 0
0 0
0
0
1 1
0 0
0 0
0 0
0 0
0
0
1 1
1 0
0 0
0 0
0 0
0
1
0 0
0 0
0 0
0 0
1 0
0
1
0 0
1 0
0 0
0 0
1 1
0
1
0 1
0 0
0 0
0 0
1 0
0
1
0 1
1 0
0 0
0 0
1 0
0
1
1 0
0 0
0 0
0 0
1 0
0
1
1 0
1 0
0 0
0 0
1 0
0
1
1 1
0 0
0 0
0 0
1 0
0
1
1 1
1 0
0 0
0 0
1 0
0
…
and so forth for all 256 possible mappings ….
#Foreground
Background Your
(re)mapping
#I
R G
B I
R G
B BLINK
INT UND
INV
0
0 0
0 1
1 1
1 1
0 0
1
0
0 0
1 1
1 1
1 1
0 1
1
0
0 1
0 1
1 1
1 1
0 0
1
0
0 1
1 1
1 1
1 1
0 0
1
0
1 0
0 1
1 1
1 1
0 0
1
0
1 0
1 1
1 1
1 1
0 0
1
0
1 1
0 1
1 1
1 1
0 0
1
0
1 1
1 1
1 1
1 1
0 0
0
1
0 0
0 1
1 1
1 1
1 0
1
1
0 0
1 1
1 1
1 1
1 1
1
1
0 1
0 1
1 1
1 1
1 0
1
1
0 1
1 1
1 1
1 1
1 0
1
1
1 0
0 1
1 1
1 1
1 0
1
1
1 0
1 1
1 1
1 1
1 0
1
1
1 1
0 1
1 1
1 1
1 0
1
1
1 1
1 1
1 1
1 1
1 0
0
The
first and last 16 table entries are pictured above. Please see the file colormap.txt
to see all 256-table entries.