new tty.ReadStream(fd[, options])
-
fd
<number> 与 TTY 关联的文件描述符。¥
fd
<number> A file descriptor associated with a TTY. -
options
<Object> 传递给父net.Socket
的选项,请参阅net.Socket
构造函数 中的options
。¥
options
<Object> Options passed to parentnet.Socket
, seeoptions
ofnet.Socket
constructor. -
¥Returns <tty.ReadStream>
为与 TTY 关联的 fd
创建 ReadStream
。
¥Creates a ReadStream
for fd
associated with a TTY.