Remove nasty ANSI workaround for Windows (#8839)

The problem has been fixed upstream in the Dart VM.

This simplifies our setup instructions on Windows (will update the wiki).
Furthermore, this also means that going forward there is no diffrence between PowerShell and Cmd for the Flutter experience on Windows.
This commit is contained in:
Michael Goderbauer
2017-03-16 18:04:14 -07:00
committed by GitHub
parent 2291a56842
commit c9a9c627b6
2 changed files with 6 additions and 38 deletions

View File

@@ -249,10 +249,12 @@ enum _LogType {
class AnsiTerminal {
AnsiTerminal() {
final String term = platform.environment['TERM'];
// FLUTTER_ANSI_TERMINAL is a work-around for https://github.com/dart-lang/sdk/issues/28614
final bool flutterAnsiTerm = platform.environment.containsKey('FLUTTER_ANSI_TERMINAL');
supportsColor = (term != null && term != 'dumb') || flutterAnsiTerm;
if (platform.isWindows) {
supportsColor = platform.ansiSupported;
} else {
final String term = platform.environment['TERM'];
supportsColor = (term != null && term != 'dumb');
}
}
static const String _bold = '\u001B[1m';