@@ -99,24 +99,41 @@ process.stdout.on('resize', () => {
9999});
100100```
101101
102- ### writeStream.clearLine(dir)
102+ ### writeStream.clearLine(dir[ , callback ] )
103103<!-- YAML
104104added: 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.
105109-->
106110
107111* ` dir ` {number}
108112 * ` -1 ` - to the left from cursor
109113 * ` 1 ` - to the right from cursor
110114 * ` 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 ` .
111119
112120` writeStream.clearLine() ` clears the current line of this ` WriteStream ` in a
113121direction identified by ` dir ` .
114122
115- ### writeStream.clearScreenDown()
123+ ### writeStream.clearScreenDown([ callback ] )
116124<!-- YAML
117125added: 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.
118130-->
119131
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+
120137` writeStream.clearScreenDown() ` clears this ` WriteStream ` from the current
121138cursor down.
122139
@@ -128,13 +145,21 @@ added: v0.7.7
128145A ` number ` specifying the number of columns the TTY currently has. This property
129146is updated whenever the ` 'resize' ` event is emitted.
130147
131- ### writeStream.cursorTo(x, y)
148+ ### writeStream.cursorTo(x, y[ , callback ] )
132149<!-- YAML
133150added: 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.
134155-->
135156
136157* ` x ` {number}
137158* ` 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 ` .
138163
139164` writeStream.cursorTo() ` moves this ` WriteStream ` 's cursor to the specified
140165position.
@@ -220,13 +245,21 @@ added: v0.5.8
220245
221246A ` boolean ` that is always ` true ` .
222247
223- ### writeStream.moveCursor(dx, dy)
248+ ### writeStream.moveCursor(dx, dy[ , callback ] )
224249<!-- YAML
225250added: 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.
226255-->
227256
228257* ` dx ` {number}
229258* ` 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 ` .
230263
231264` writeStream.moveCursor() ` moves this ` WriteStream ` 's cursor * relative* to its
232265current position.
0 commit comments