TerminalPalette Class
Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.dll (version 7.0.9313)
A 256-color terminal palette.
Syntax
public sealed class TerminalPalette
Inherited Members
Constructors
| Name | Description |
|---|---|
| TerminalPalette() | Creates a palette with standard ANSI colors in the first 16 entries and xterm colors in the higher 240 entries. |
| TerminalPalette(Int32) | Creates a palette with standard ANSI colors in the first 16 entries and xterm colors in the higher 240 entries. Useful for specifying custom colors above 256 system colors. |
Properties
| Name | Description |
|---|---|
| Ansi | Gets the palette with standard ANSI colors in the first 16 entries and xterm colors in the higher entries. |
| Dos | Gets the palette with standard MS-DOS colors in the first 16 entries and xterm colors in the higher entries. |
| Item[Int32] | Gets the palette color at the specified index. |
| Pick | Gets the palette with standard Pick colors in the first 16 entries and xterm colors in the higher entries. |
| Sco | Gets the palette with standard SCO colors in the first 16 entries and xterm colors in the higher entries. |
Methods
| Name | Description |
|---|---|
| GetColor(Int32) | Gets the palette color at the specified index. |
| SetColor(Int32, Color) | Sets the palette color at the specified index. Please note that the default Ansi and Dos palettes are read-only - create a new palette to set colors. |