Reference TTerminalColors
Declared in Codebot.Terminal.Controls.pas on line 41
TTerminalColors are the colors of a terminal. Highlight is the color behind selected text and HighlightText is the color of the selected text, which are dark text on a light background by default so a selection can be read. Dim is not used with Gtk3. Cursor, Highlight, and HighlightText are not used with Gtk2, where a selection swaps the text and background colors.
Palette chooses the sixteen colors which programs ask for by number, such as the colors of file names listed by ls and of a colored prompt. It is the palette of the gnome terminal by default.
TTerminalColors = class(TPersistent)
protected
{ Invoke OnChange }
procedure Change;
public
{ Create the colors, which are silver text on black, and black text on
silver where text is selected }
constructor Create;
procedure Assign(Source: TPersistent); override;
{ OnChange is invoked when a color changes }
property OnChange: TNotifyEvent read FOnChange write FOnChange;
published
property Foreground: TColor index 0 read GetColor write SetColor default clSilver;
property Background: TColor index 1 read GetColor write SetColor default clBlack;
property Bold: TColor index 2 read GetColor write SetColor default clWhite;
property Dim: TColor index 3 read GetColor write SetColor default clGray;
property Cursor: TColor index 4 read GetColor write SetColor default clWhite;
property Highlight: TColor index 5 read GetColor write SetColor default clSilver;
property HighlightText: TColor index 6 read GetColor write SetColor default clBlack;
property Palette: TTerminalPalette read FPalette write SetPalette default tpTango;
end;See also
TTerminalPalette in Codebot.Terminal.Types.pas