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

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

Issue 2946283002: Fix a couple of doc comment references - and many spelling mistakes (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/websocket.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 * with some terminals supporting more escape sequences than others, 147 * with some terminals supporting more escape sequences than others,
148 * and some terminals even differing in behavior for the same escape 148 * and some terminals even differing in behavior for the same escape
149 * sequence. 149 * sequence.
150 * 150 *
151 * The ANSI color selection is generally supported. 151 * The ANSI color selection is generally supported.
152 * 152 *
153 * Currently, a `TERM` environment variable containing the string `xterm` 153 * Currently, a `TERM` environment variable containing the string `xterm`
154 * will be taken as evidence that ANSI escape sequences are supported. 154 * will be taken as evidence that ANSI escape sequences are supported.
155 * On Windows, only versions of Windows 10 after v.1511 155 * On Windows, only versions of Windows 10 after v.1511
156 * ("TH2", OS build 10586) will be detected as supporting the output of 156 * ("TH2", OS build 10586) will be detected as supporting the output of
157 * ANSI escape sequences, and only versions after v.1607 ("Anniversery 157 * ANSI escape sequences, and only versions after v.1607 ("Anniversary
158 * Update", OS build 14393) will be detected as supporting the input of 158 * Update", OS build 14393) will be detected as supporting the input of
159 * ANSI escape sequences. 159 * ANSI escape sequences.
160 */ 160 */
161 external bool get supportsAnsiEscapes; 161 external bool get supportsAnsiEscapes;
162 162
163 /** 163 /**
164 * Synchronously read a byte from stdin. This call will block until a byte is 164 * Synchronously read a byte from stdin. This call will block until a byte is
165 * available. 165 * available.
166 * 166 *
167 * If at end of file, -1 is returned. 167 * If at end of file, -1 is returned.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 * with some terminals supporting more escape sequences than others, 221 * with some terminals supporting more escape sequences than others,
222 * and some terminals even differing in behavior for the same escape 222 * and some terminals even differing in behavior for the same escape
223 * sequence. 223 * sequence.
224 * 224 *
225 * The ANSI color selection is generally supported. 225 * The ANSI color selection is generally supported.
226 * 226 *
227 * Currently, a `TERM` environment variable containing the string `xterm` 227 * Currently, a `TERM` environment variable containing the string `xterm`
228 * will be taken as evidence that ANSI escape sequences are supported. 228 * will be taken as evidence that ANSI escape sequences are supported.
229 * On Windows, only versions of Windows 10 after v.1511 229 * On Windows, only versions of Windows 10 after v.1511
230 * ("TH2", OS build 10586) will be detected as supporting the output of 230 * ("TH2", OS build 10586) will be detected as supporting the output of
231 * ANSI escape sequences, and only versions after v.1607 ("Anniversery 231 * ANSI escape sequences, and only versions after v.1607 ("Anniversary
232 * Update", OS build 14393) will be detected as supporting the input of 232 * Update", OS build 14393) will be detected as supporting the input of
233 * ANSI escape sequences. 233 * ANSI escape sequences.
234 */ 234 */
235 bool get supportsAnsiEscapes => _supportsAnsiEscapes(_fd); 235 bool get supportsAnsiEscapes => _supportsAnsiEscapes(_fd);
236 236
237 external bool _hasTerminal(int fd); 237 external bool _hasTerminal(int fd);
238 external int _terminalColumns(int fd); 238 external int _terminalColumns(int fd);
239 external int _terminalLines(int fd); 239 external int _terminalLines(int fd);
240 external static bool _supportsAnsiEscapes(int fd); 240 external static bool _supportsAnsiEscapes(int fd);
241 241
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 422 }
423 423
424 class _StdIOUtils { 424 class _StdIOUtils {
425 external static _getStdioOutputStream(int fd); 425 external static _getStdioOutputStream(int fd);
426 external static Stdin _getStdioInputStream(); 426 external static Stdin _getStdioInputStream();
427 427
428 /// Returns the socket type or `null` if [socket] is not a builtin socket. 428 /// Returns the socket type or `null` if [socket] is not a builtin socket.
429 external static int _socketType(Socket socket); 429 external static int _socketType(Socket socket);
430 external static _getStdioHandleType(int fd); 430 external static _getStdioHandleType(int fd);
431 } 431 }
OLDNEW
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/websocket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698