TerminalOptions.SetColorIndex Method
Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.dll (version 7.0.9119)
SetColorIndex(SchemeColorName, Int32)
Sets the palette index to be used by the specified named scheme color. This is only used for Custom (see ColorScheme property).
Declaration
public void SetColorIndex(SchemeColorName color, int paletteIndex)
Parameters
Type | Name | Description |
---|---|---|
SchemeColorName | color | Named scheme color. |
Int32 | paletteIndex | Palette index (0..255). |
Remarks
The default palette contains the following colors:
0 = Black, 1 = Red, 2 = Green, 3 = Yellow, 4 = Blue, 5 = Magenta, 6 = Cyan, 7 = LightGray,
8 = DarkGray, 9 = LightRed, 10 = LightGreen, 11 = LightYellow, 12 = LightBlue, 13 = LightMagenta, 14 = LightCyan, 15 = White,
16 and higher = Xterm colors.
When using
TerminalControl
object, call System.Windows.Forms.Control.Refresh
method to apply the color changes immediately.