Skip to main content

Module theme

Module theme 

Source
Expand description

Terminal capability detection — picks the colour fidelity teamctl-ui renders at. Read once at startup; the rest of the UI passes the Capabilities value down to widgets so colour choices stay consistent across a single session even if the env mutates.

Structs§

Capabilities

Enums§

ColorMode

Functions§

detect_capabilities
Detect terminal colour fidelity from environment variables. Honors NO_COLOR (unconditional monochrome — see https://no-color.org) and TERM=dumb first, then COLORTERM, then TERM substring.