terminalSupportsAnsi property

bool terminalSupportsAnsi

Return whether the current stdout terminal supports ANSI escape sequences.

Implementation

static bool get terminalSupportsAnsi =>
    io.stdout.supportsAnsiEscapes &&
    io.stdioType(io.stdout) == io.StdioType.terminal;