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

Unified Diff: sdk/lib/_internal/js_runtime/lib/io_patch.dart

Issue 2753233002: [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes (Closed)
Patch Set: Fix typo Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/js_runtime/lib/io_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/io_patch.dart b/sdk/lib/_internal/js_runtime/lib/io_patch.dart
index d6647d7a37bfff7d13cf6b4b35c94c61f36b8e4c..46f8404ab2d636e415774b8926770b43467225d4 100644
--- a/sdk/lib/_internal/js_runtime/lib/io_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/io_patch.dart
@@ -250,11 +250,6 @@ class _Platform {
static String _version() {
throw new UnsupportedError("Platform._version");
}
-
- @patch
- static bool _ansiSupported() {
- throw new UnsupportedError("Platform._ansiSupported");
- }
}
@patch
@@ -550,6 +545,11 @@ class Stdin {
void set lineMode(bool enabled) {
throw new UnsupportedError("Stdin.lineMode");
}
+
+ @patch
+ bool get supportsAnsiEscapes {
+ throw new UnsupportedError("Stdin.supportsAnsiEscapes");
+ }
}
@patch
@@ -568,6 +568,11 @@ class Stdout {
int _terminalLines(int fd) {
throw new UnsupportedError("Stdout.terminalLines");
}
+
+ @patch
+ static bool _supportsAnsiEscapes(int fd) {
+ throw new UnsupportedError("Stdout.supportsAnsiEscapes");
+ }
}
@patch

Powered by Google App Engine
This is Rietveld 408576698