Strip all ANSI escape sequences from text.
String stripAnsi(String input) { return input.replaceAll(RegExp(r'\x1B\[[0-9;]*[a-zA-Z]'), ''); }