| OLD | NEW |
| 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 @patch class _StdIOUtils { | 5 @patch class _StdIOUtils { |
| 6 @patch static Stdin _getStdioInputStream() { | 6 @patch static Stdin _getStdioInputStream() { |
| 7 switch (_getStdioHandleType(0)) { | 7 switch (_getStdioHandleType(0)) { |
| 8 case _STDIO_HANDLE_TYPE_TERMINAL: | 8 case _STDIO_HANDLE_TYPE_TERMINAL: |
| 9 case _STDIO_HANDLE_TYPE_PIPE: | 9 case _STDIO_HANDLE_TYPE_PIPE: |
| 10 case _STDIO_HANDLE_TYPE_SOCKET: | 10 case _STDIO_HANDLE_TYPE_SOCKET: |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 if (size is! List) { | 108 if (size is! List) { |
| 109 throw new StdoutException("Could not get terminal size", size); | 109 throw new StdoutException("Could not get terminal size", size); |
| 110 } | 110 } |
| 111 return size; | 111 return size; |
| 112 } | 112 } |
| 113 | 113 |
| 114 static _getTerminalSize(int fd) native "Stdout_GetTerminalSize"; | 114 static _getTerminalSize(int fd) native "Stdout_GetTerminalSize"; |
| 115 } | 115 } |
| 116 | 116 |
| 117 | 117 |
| 118 _getStdioHandle(_NativeSocket socket, int num) native "Socket_GetStdioHandle"; | 118 _getStdioHandle(_NativeSocket socket, int num) native "BaseSocket_GetStdioHandle
"; |
| 119 _getSocketType(_NativeSocket nativeSocket) native "Socket_GetType"; | 119 _getSocketType(_NativeSocket nativeSocket) native "BaseSocket_GetType"; |
| OLD | NEW |