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

Side by Side Diff: sdk/lib/io/stdio.dart

Issue 132163005: Version 1.1.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/profiler.cc ('k') | tests/language/disasssemble_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0;
8 const int _STDIO_HANDLE_TYPE_PIPE = 1; 8 const int _STDIO_HANDLE_TYPE_PIPE = 1;
9 const int _STDIO_HANDLE_TYPE_FILE = 2; 9 const int _STDIO_HANDLE_TYPE_FILE = 2;
10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 */ 157 */
158 external int readByteSync(); 158 external int readByteSync();
159 } 159 }
160 160
161 161
162 /** 162 /**
163 * [Stdout] exposes methods to query the terminal for properties. 163 * [Stdout] exposes methods to query the terminal for properties.
164 * 164 *
165 * Use [hasTerminal] to test if there is a terminal associated to stdout. 165 * Use [hasTerminal] to test if there is a terminal associated to stdout.
166 */ 166 */
167 class Stdout extends _StdSink { 167 class Stdout extends _StdSink implements IOSink {
168 // TODO(15721): Should implement IOSink (for documentation purpose).
169 Stdout._(IOSink sink) : super(sink); 168 Stdout._(IOSink sink) : super(sink);
170 169
171 /** 170 /**
172 * Returns true if there is a terminal attached to stdout. 171 * Returns true if there is a terminal attached to stdout.
173 */ 172 */
174 external bool get hasTerminal; 173 external bool get hasTerminal;
175 174
176 /** 175 /**
177 * Get the number of columns of the terminal. 176 * Get the number of columns of the terminal.
178 * 177 *
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 297 }
299 return StdioType.OTHER; 298 return StdioType.OTHER;
300 } 299 }
301 300
302 301
303 class _StdIOUtils { 302 class _StdIOUtils {
304 external static _getStdioOutputStream(int fd); 303 external static _getStdioOutputStream(int fd);
305 external static Stdin _getStdioInputStream(); 304 external static Stdin _getStdioInputStream();
306 external static int _socketType(nativeSocket); 305 external static int _socketType(nativeSocket);
307 } 306 }
OLDNEW
« no previous file with comments | « runtime/vm/profiler.cc ('k') | tests/language/disasssemble_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698