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,
98
98
` tty.WriteStream ` instances created for a Node.js process and there
99
99
should be no reason to create additional instances.
100
100
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
+
101
126
### Event: ` 'resize' `
102
127
103
128
<!-- YAML
@@ -314,6 +339,7 @@ The `tty.isatty()` method returns `true` if the given `fd` is associated with
314
339
a TTY and ` false ` if it is not, including whenever ` fd ` is not a non-negative
315
340
integer.
316
341
342
+ [ `net.Socket` constructor ] : net.md#net_new_net_socket_options
317
343
[ `process.stderr` ] : process.md#processstderr
318
344
[ `process.stdin` ] : process.md#processstdin
319
345
[ `process.stdout` ] : process.md#processstdout
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ const customTypesMap = {
221
221
222
222
'Tracing' : 'tracing.html#tracing-object' ,
223
223
224
+ 'tty.ReadStream' : 'tty.html#tty_class_tty_readstream' ,
225
+ 'tty.WriteStream' : 'tty.html#tty_class_tty_writestream' ,
226
+
224
227
'URL' : 'url.html#the-whatwg-url-api' ,
225
228
'URLSearchParams' : 'url.html#class-urlsearchparams' ,
226
229
You can’t perform that action at this time.
0 commit comments