Table of Contents

Enum ColorDepth

Namespace
Retro.Crt
Assembly
Retro.Crt.dll

What the terminal can actually render. Detected once at startup; every emitted color is quantized down to the highest depth this terminal understands so an ESC[38;2;R;G;B never reaches a 16-color VT520.

public enum ColorDepth : byte

Fields

None = 0

No ANSI escapes — output is redirected, NO_COLOR is set, TERM=dumb, or VT enablement failed on Windows. Colors are dropped silently.

Standard16 = 1

16 SGR colors (30..37, 90..97). Truecolor and 256-color values are quantized to the nearest of the 16 BIOS anchors before emission.

Xterm256 = 2

xterm 256-color palette. Truecolor values are quantized to the closest 6×6×6 cube entry or 24-step grayscale ramp.

Truecolor = 3

24-bit truecolor. Modern terminals (Windows Terminal, iTerm2, gnome-terminal, kitty, alacritty, modern xterm).