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

Unified Diff: runtime/bin/stdio.h

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.h
diff --git a/runtime/bin/stdio.h b/runtime/bin/stdio.h
index 56b591499b6e54cb825fe8809bf12a7e62d200af..e55c317aa1d75cb680f8cd522ee8ca8e442d6f4c 100644
--- a/runtime/bin/stdio.h
+++ b/runtime/bin/stdio.h
@@ -27,6 +27,8 @@ class Stdin {
static bool GetLineMode(bool* enabled);
static bool SetLineMode(bool enabled);
+ static bool AnsiSupported(bool* supported);
+
private:
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Stdin);
@@ -36,6 +38,7 @@ class Stdin {
class Stdout {
public:
static bool GetTerminalSize(intptr_t fd, int size[2]);
+ static bool AnsiSupported(intptr_t fd, bool* supported);
private:
DISALLOW_ALLOCATION();
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | runtime/bin/stdio.cc » ('j') | runtime/bin/stdio.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698