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

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

Issue 102123010: Add getter for hasTerminal, terminalColumns and terminalLines on stdout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add include of thread.h and fix io_patch. Created 7 years 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
« no previous file with comments | « runtime/bin/stdio_win.cc ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/io_patch.dart
diff --git a/sdk/lib/_internal/lib/io_patch.dart b/sdk/lib/_internal/lib/io_patch.dart
index 7f11b28c822654ee1f03ed2d11ef505539937789..4321ab8fe9ecb083ac5b9af0a253d1d957a6fc14 100644
--- a/sdk/lib/_internal/lib/io_patch.dart
+++ b/sdk/lib/_internal/lib/io_patch.dart
@@ -313,7 +313,7 @@ patch class _StdIOUtils {
patch static Stdin _getStdioInputStream() {
throw new UnsupportedError("StdIOUtils._getStdioInputStream");
}
- patch static IOSink _getStdioOutputStream(int fd) {
+ patch static _getStdioOutputStream(int fd) {
throw new UnsupportedError("StdIOUtils._getStdioOutputStream");
}
patch static int _socketType(nativeSocket) {
@@ -360,6 +360,18 @@ patch class Stdin {
}
}
+patch class Stdout {
+ patch bool get hasTerminal {
+ throw new UnsupportedError("Stdout.hasTerminal");
+ }
+ patch int get terminalColumns {
+ throw new UnsupportedError("Stdout.terminalColumns");
+ }
+ patch int get terminalLines {
+ throw new UnsupportedError("Stdout.terminalLines");
+ }
+}
+
patch class _FileSystemWatcher {
patch static Stream<FileSystemEvent> watch(
String path, int events, bool recursive) {
« no previous file with comments | « runtime/bin/stdio_win.cc ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698