stripAnsi static method

String stripAnsi(
  1. String text
)

Removes every ANSI escape sequence from text.

Implementation

static String stripAnsi(String text) => text.replaceAll(_ansiPattern, '');