pub fn detect_capabilities() -> CapabilitiesExpand description
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.