@@ -99,24 +99,41 @@ process.stdout.on('resize', () => {
99
99
});
100
100
```
101
101
102
- ### writeStream.clearLine(dir)
102
+ ### writeStream.clearLine(dir[ , callback ] )
103
103
<!-- YAML
104
104
added: v0.7.7
105
+ changes:
106
+ - version: REPLACEME
107
+ pr-url: https://github.com/nodejs/node/pull/28721
108
+ description: The stream's write() callback and return value are exposed.
105
109
-->
106
110
107
111
* ` dir ` {number}
108
112
* ` -1 ` - to the left from cursor
109
113
* ` 1 ` - to the right from cursor
110
114
* ` 0 ` - the entire line
115
+ * ` callback ` {Function} Invoked once the operation completes.
116
+ * Returns: {boolean} ` false ` if the stream wishes for the calling code to wait
117
+ for the ` 'drain' ` event to be emitted before continuing to write additional
118
+ data; otherwise ` true ` .
111
119
112
120
` writeStream.clearLine() ` clears the current line of this ` WriteStream ` in a
113
121
direction identified by ` dir ` .
114
122
115
- ### writeStream.clearScreenDown()
123
+ ### writeStream.clearScreenDown([ callback ] )
116
124
<!-- YAML
117
125
added: v0.7.7
126
+ changes:
127
+ - version: REPLACEME
128
+ pr-url: https://github.com/nodejs/node/pull/28721
129
+ description: The stream's write() callback and return value are exposed.
118
130
-->
119
131
132
+ * ` callback ` {Function} Invoked once the operation completes.
133
+ * Returns: {boolean} ` false ` if the stream wishes for the calling code to wait
134
+ for the ` 'drain' ` event to be emitted before continuing to write additional
135
+ data; otherwise ` true ` .
136
+
120
137
` writeStream.clearScreenDown() ` clears this ` WriteStream ` from the current
121
138
cursor down.
122
139
@@ -128,13 +145,21 @@ added: v0.7.7
128
145
A ` number ` specifying the number of columns the TTY currently has. This property
129
146
is updated whenever the ` 'resize' ` event is emitted.
130
147
131
- ### writeStream.cursorTo(x, y)
148
+ ### writeStream.cursorTo(x, y[ , callback ] )
132
149
<!-- YAML
133
150
added: v0.7.7
151
+ changes:
152
+ - version: REPLACEME
153
+ pr-url: https://github.com/nodejs/node/pull/28721
154
+ description: The stream's write() callback and return value are exposed.
134
155
-->
135
156
136
157
* ` x ` {number}
137
158
* ` y ` {number}
159
+ * ` callback ` {Function} Invoked once the operation completes.
160
+ * Returns: {boolean} ` false ` if the stream wishes for the calling code to wait
161
+ for the ` 'drain' ` event to be emitted before continuing to write additional
162
+ data; otherwise ` true ` .
138
163
139
164
` writeStream.cursorTo() ` moves this ` WriteStream ` 's cursor to the specified
140
165
position.
@@ -220,13 +245,21 @@ added: v0.5.8
220
245
221
246
A ` boolean ` that is always ` true ` .
222
247
223
- ### writeStream.moveCursor(dx, dy)
248
+ ### writeStream.moveCursor(dx, dy[ , callback ] )
224
249
<!-- YAML
225
250
added: v0.7.7
251
+ changes:
252
+ - version: REPLACEME
253
+ pr-url: https://github.com/nodejs/node/pull/28721
254
+ description: The stream's write() callback and return value are exposed.
226
255
-->
227
256
228
257
* ` dx ` {number}
229
258
* ` dy ` {number}
259
+ * ` callback ` {Function} Invoked once the operation completes.
260
+ * Returns: {boolean} ` false ` if the stream wishes for the calling code to wait
261
+ for the ` 'drain' ` event to be emitted before continuing to write additional
262
+ data; otherwise ` true ` .
230
263
231
264
` writeStream.moveCursor() ` moves this ` WriteStream ` 's cursor * relative* to its
232
265
current position.
0 commit comments