SocketTools .NET Edition

Terminal.ColorMap Field

Gets and sets the color values used when displaying text.

[Visual Basic]
<Browsable(Browsable:=False), _  Description(Description:="Sets or returns the color value used when displaying color text attributes.")>
Public ReadOnly ColorMap As DisplayColorMap
[C#]
[Browsable(Browsable=False)]
[Description(Description="Sets or returns the color value used when displaying color text attributes.")]
public readonly DisplayColorMap ColorMap;

Remarks

The ColorMap array provides access to the virtual display color table which determines what color values are used to display foreground and background text color attributes.

When the emulator processes an escape sequence that changes the current foreground or background color, the actual RGB color value is determined by looking up the value in the virtual display's color table. The ColorMap property is useful for determining what values are being used when a color attribute is set and enables an application to change those colors. The emulator currently supports a maximum of sixteen (16) color values, and the index into the table corresponds to the color as defined by the standard for ANSI terminals.

See Also

Terminal Class | SocketTools Namespace