supportsAnsiColors property
bool
get
supportsAnsiColors
Returns true if the current terminal supports ANSI escape codes.
The result is cached after the first call for performance.
Implementation
static bool get supportsAnsiColors {
if (_supportsAnsi != null) return _supportsAnsi!;
_supportsAnsi = _detectAnsiSupport();
return _supportsAnsi!;
}