(stream, timeout)
| 149 | }, |
| 150 | |
| 151 | async pollAsync(stream, timeout) { |
| 152 | if (!PTY.readable && timeout) { |
| 153 | await waitForReadable(timeout); |
| 154 | } |
| 155 | return (PTY.readable ? POLLIN : 0) | (PTY.writable ? POLLOUT : 0); |
| 156 | }, |
| 157 | ioctl(stream, request, varargs) { |
| 158 | if (request === FIONREAD) { |
| 159 | const res = PTY.fromLdiscToUpperBuffer.length; |
nothing calls this directly
no test coverage detected
searching dependent graphs…