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

Unified Diff: runtime/bin/stdio_unsupported.cc

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: runtime/bin/stdio_unsupported.cc
diff --git a/runtime/bin/stdio_unsupported.cc b/runtime/bin/stdio_unsupported.cc
index 1482f919bbbcde2682adcaa5e8cfdbb445ba52cd..d4c9d0693ca2d6738100ab116b21e249106751ce 100644
--- a/runtime/bin/stdio_unsupported.cc
+++ b/runtime/bin/stdio_unsupported.cc
@@ -41,11 +41,23 @@ void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) {
}
+void FUNCTION_NAME(Stdin_AnsiSupported)(Dart_NativeArguments args) {
+ Dart_ThrowException(
+ DartUtils::NewDartArgumentError("Stdin unsupported on this platform"));
+}
+
+
void FUNCTION_NAME(Stdout_GetTerminalSize)(Dart_NativeArguments args) {
Dart_ThrowException(
DartUtils::NewDartArgumentError("Stdout unsupported on this platform"));
}
+
+void FUNCTION_NAME(Stdout_AnsiSupported)(Dart_NativeArguments args) {
+ Dart_ThrowException(
+ DartUtils::NewDartArgumentError("Stdout unsupported on this platform"));
+}
+
} // namespace bin
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698