supported property

bool get supported

Whether an animation is appropriate for the current output.

Implementation

static bool get supported {
  if (ColorizeLogger.verbosity != LogVerbosity.normal) return false;
  // A captured task's output is a buffer printed later; an animation in it
  // would arrive as a screenful of escape codes long after the fact.
  if (ColorizeLogger.isCapturing) return false;
  return isTerminal();
}