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

Unified Diff: sdk/lib/io/stdio.dart

Issue 102953008: Add getter for lineMode and echoMode for Stdin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « sdk/lib/_internal/lib/io_patch.dart ('k') | tests/standalone/io/stdin_sync_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/stdio.dart
diff --git a/sdk/lib/io/stdio.dart b/sdk/lib/io/stdio.dart
index b0e246d5e8c9853c60bbe8e1dbc60a00a5238a35..ab2f03a2dcdd191f8b035ad409e43cba21d574b6 100644
--- a/sdk/lib/io/stdio.dart
+++ b/sdk/lib/io/stdio.dart
@@ -121,7 +121,12 @@ class Stdin extends _StdStream implements Stream<List<int>> {
}
/**
- * Enable or disable echo mode on the [Stdin].
+ * Check if echo mode is enabled on [stdin].
+ */
+ external bool get echoMode;
+
+ /**
+ * Enable or disable echo mode on [stdin].
*
* If disabled, input from to console will not be echoed.
*
@@ -130,7 +135,12 @@ class Stdin extends _StdStream implements Stream<List<int>> {
external void set echoMode(bool enabled);
/**
- * Enable or disable line mode on the [Stdin].
+ * Check if line mode is enabled on [stdin].
+ */
+ external bool get lineMode;
+
+ /**
+ * Enable or disable line mode on [stdin].
*
* If enabled, characters are delayed until a new-line character is entered.
* If disabled, characters will be available as typed.
« no previous file with comments | « sdk/lib/_internal/lib/io_patch.dart ('k') | tests/standalone/io/stdin_sync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698