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:
committed by
GitHub
parent
2291a56842
commit
c9a9c627b6
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user