SocketTools .NET Edition

Terminal.TerminalColor Enumeration

Specifies the colors supported by the Terminal control.

[Visual Basic]
Public Enum Terminal.TerminalColor
[C#]
public enum Terminal.TerminalColor

Remarks

A standard ANSI color terminal supports eight standard colors (0-7). To select a foreground color, you add 30 to the color index and pass that value as a parameter to the SGR (select graphic rendition) escape sequence. To select a background color, you add 40 to the color index. For example, to set the current foreground color to white and the background color to blue, you could send the following escape sequence:

 ESC [ 37;44 m 

Note that if you wanted to set the foreground color to a bold version of standard yellow, you would first set the bold attribute, and then use the index value of 3, such as:

 ESC [ 1;33m 

Changing the value of the ColorMap array allows the application to make selective changes to the actual RGB color value that is used when a color attribute is set. Note that changes to the color map will only affect new characters as they are displayed, not any previously displayed characters

Members

Member Name Description
Black Color value RGB(0,0,0)
Red Color value RGB(160,0,0)
Green Color value RGB(0,160,0)
Yellow Color value RGB(160,160,0)
Blue Color value RGB(0,0,160)
Magenta Color value RGB(160,0,160)
Cyan Color value RGB(0,160,160)
White Color value RGB(224,224,224)
Gray Color value RGB(192,192,192)
LtRed Color value RGB(255,128,128)
LtGreen Color value RGB(144,238,144)
LtYellow Color value RGB(255,255,192)
LtBlue Color value RGB(173,216,230)
LtMagenta Color value RGB(255,192,255)
LtCyan Color value RGB(224,255,255)
HiWhite Color value RGB(255,255,255)

Requirements

Namespace: SocketTools

Assembly: SocketTools.Terminal (in SocketTools.Terminal.dll)

See Also

SocketTools Namespace