Table of Contents

Enum ColorMode

Namespace
Retro.Crt
Assembly
Retro.Crt.dll

Determines how a Color is encoded in an ANSI escape.

public enum ColorMode : byte

Fields

Truecolor = 0

24-bit truecolor (ESC[38;2;R;G;Bm). Default for new colors.

Standard16 = 1

One of the 16 standard SGR colors (ESC[30..37m / ESC[90..97m). Maps to the user's terminal palette so themed terminals (Solarized, Dracula, …) keep their identity.

Xterm256 = 2

xterm 256-color palette index 0..255 (ESC[38;5;Nm). The first 16 entries mirror Standard16; 16..231 form a 6×6×6 RGB cube; 232..255 are a 24-step grayscale ramp.