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, seeoptionsofnet.Socketconstructor. -
¥Returns <tty.ReadStream>
为与 TTY 关联的 fd 创建 ReadStream。
¥Creates a ReadStream for fd associated with a TTY.