File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,31 @@ Represents the writable side of a TTY. In normal circumstances,
9898` tty.WriteStream ` instances created for a Node.js process and there
9999should be no reason to create additional instances.
100100
101+ ### ` new tty.ReadStream(fd[, options]) `
102+ <!-- YAML
103+ added: v0.5.8
104+ changes:
105+ - version: v0.9.4
106+ description: The `options` argument is supported.
107+ -->
108+
109+ * ` fd ` {number} A file descriptor associated with a TTY.
110+ * ` options ` {Object} Options passed to parent ` net.Socket ` ,
111+ see ` options ` of [ ` net.Socket ` constructor] [ ] .
112+ * Returns {tty.ReadStream}
113+
114+ Creates a ` ReadStream ` for ` fd ` associated with a TTY.
115+
116+ ### ` new tty.WriteStream(fd) `
117+ <!-- YAML
118+ added: v0.5.8
119+ -->
120+
121+ * ` fd ` {number} A file descriptor associated with a TTY.
122+ * Returns {tty.WriteStream}
123+
124+ Creates a ` WriteStream ` for ` fd ` associated with a TTY.
125+
101126### Event: ` 'resize' `
102127
103128<!-- YAML
@@ -314,6 +339,7 @@ The `tty.isatty()` method returns `true` if the given `fd` is associated with
314339a TTY and ` false ` if it is not, including whenever ` fd ` is not a non-negative
315340integer.
316341
342+ [ `net.Socket` constructor ] : net.md#net_new_net_socket_options
317343[ `process.stderr` ] : process.md#processstderr
318344[ `process.stdin` ] : process.md#processstdin
319345[ `process.stdout` ] : process.md#processstdout
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ const customTypesMap = {
221221
222222 'Tracing' : 'tracing.html#tracing-object' ,
223223
224+ 'tty.ReadStream' : 'tty.html#tty_class_tty_readstream' ,
225+ 'tty.WriteStream' : 'tty.html#tty_class_tty_writestream' ,
226+
224227 'URL' : 'url.html#the-whatwg-url-api' ,
225228 'URLSearchParams' : 'url.html#class-urlsearchparams' ,
226229
You can’t perform that action at this time.
0 commit comments