|
[dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes
On Windows, some Windows 10 builds support only ANSI output, but not
input, so these need to be separated.
I'm also improving the detection on Mac and Linux to avoid hardcoding
the result. Instead, supportsAnsiEscapes will be true if isatty() and
the TERM environment variable contains the string 'xterm'.
related #28614
R=lrn@google.com
Committed: https://github.com/dart-lang/sdk/commit/b3093ecee63152032750ede294f52275c5d34928
Total comments: 10
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+276 lines, -81 lines) |
Patch |
|
M |
CHANGELOG.md
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/io_natives.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/platform.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_android.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_fuchsia.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_linux.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_macos.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_patch.dart
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_unsupported.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/bin/platform_win.cc
|
View
|
|
4 chunks |
+3 lines, -17 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio.h
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio.cc
|
View
|
|
2 chunks |
+30 lines, -0 lines |
1 comment
|
Download
|
|
M |
runtime/bin/stdio_android.cc
|
View
|
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio_fuchsia.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio_linux.cc
|
View
|
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio_macos.cc
|
View
|
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio_patch.dart
|
View
|
1
2
|
2 chunks |
+19 lines, -0 lines |
1 comment
|
Download
|
|
M |
runtime/bin/stdio_unsupported.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/stdio_win.cc
|
View
|
1
2
|
3 chunks |
+49 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/js_runtime/lib/io_patch.dart
|
View
|
1
2
|
3 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/platform.dart
|
View
|
|
2 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/platform_impl.dart
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/stdio.dart
|
View
|
1
2
3
4
|
3 chunks |
+50 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/ansi_supported_test.dart
|
View
|
1
2
|
1 chunk |
+22 lines, -10 lines |
0 comments
|
Download
|
Total messages: 13 (5 generated)
|