Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Issue 2753233002: [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes (Closed)

Created:
3 years, 9 months ago by zra
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[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

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10

Patch Set 3 : Address comments #

Patch Set 4 : Update changelog #

Total comments: 2

Patch Set 5 : Fix typo #

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

Messages

Total messages: 13 (5 generated)
zra
3 years, 9 months ago (2017-03-17 06:48:10 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart#newcode140 sdk/lib/io/stdio.dart:140: * When connected to a terminal, whether ANSI codes ...
3 years, 9 months ago (2017-03-17 08:55:29 UTC) #5
zra
https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart#newcode140 sdk/lib/io/stdio.dart:140: * When connected to a terminal, whether ANSI codes ...
3 years, 9 months ago (2017-03-17 15:38:51 UTC) #7
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart#newcode144 sdk/lib/io/stdio.dart:144: * versions of Windows 10. This is not ...
3 years, 9 months ago (2017-03-17 16:02:49 UTC) #8
zra
https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/2753233002/diff/20001/sdk/lib/io/stdio.dart#newcode144 sdk/lib/io/stdio.dart:144: * versions of Windows 10. On 2017/03/17 16:02:49, Lasse ...
3 years, 9 months ago (2017-03-17 17:45:35 UTC) #9
zra
Committed patchset #5 (id:80001) manually as b3093ecee63152032750ede294f52275c5d34928 (presubmit successful).
3 years, 9 months ago (2017-03-17 19:35:42 UTC) #11
siva
lgtm https://codereview.chromium.org/2753233002/diff/80001/runtime/bin/stdio.cc File runtime/bin/stdio.cc (right): https://codereview.chromium.org/2753233002/diff/80001/runtime/bin/stdio.cc#newcode116 runtime/bin/stdio.cc:116: } The above chunk could be written as ...
3 years, 9 months ago (2017-03-17 23:54:24 UTC) #12
siva
3 years, 9 months ago (2017-03-17 23:54:26 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698