Skip to content

Commit

Permalink
Enable the default reporter and colors always if !windows (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Jun 14, 2018
1 parent 5e20b27 commit 244df57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 0.12.41

* Add support for debugging VM tests.
* Tweak default reporter and color logic again so that they are always enabled
on all non-windows platforms.

## 0.12.40

Expand Down
3 changes: 2 additions & 1 deletion lib/src/util/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ final _tempDir = Platform.environment.containsKey("_UNITTEST_TEMP_DIR")
/// Whether or not the current terminal supports ansi escape codes.
///
/// Otherwise only printable ASCII characters should be used.
bool get canUseSpecialChars => stdout.supportsAnsiEscapes && !inTestTests;
bool get canUseSpecialChars =>
(!Platform.isWindows || stdout.supportsAnsiEscapes) && !inTestTests;

/// Creates a temporary directory and returns its path.
String createTempDir() => new Directory(_tempDir)
Expand Down

0 comments on commit 244df57

Please sign in to comment.