Terminal color capability detection via environment variables.
Summary
Functions
Detects the terminal's color capability by inspecting COLORTERM and TERM env vars.
Returns true if the terminal supports 16 colors.
Returns true if the terminal supports 256 colors.
Returns true if the terminal supports 24-bit true color.
Types
Functions
@spec detect() :: terminal_capability()
Detects the terminal's color capability by inspecting COLORTERM and TERM env vars.
@spec supports_16_color?() :: boolean()
Returns true if the terminal supports 16 colors.
@spec supports_256_color?() :: boolean()
Returns true if the terminal supports 256 colors.
@spec supports_true_color?() :: boolean()
Returns true if the terminal supports 24-bit true color.