Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TerminalPalette Class

Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.dll (version 7.0.9147)

A 256-color terminal palette.

Syntax
public sealed class TerminalPalette
Inheritance
Object
TerminalPalette
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

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.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies