Skip to main content

cursorTo

method WriteStream.prototype.cursorTo
Jump to headingWriteStream.prototype.cursorTo(
x: number,
y?: number,
callback?: () => void,
): boolean

writeStream.cursorTo() moves this WriteStream's cursor to the specified position.

Parameters Jump to heading

optional
Jump to headingy: number
optional
Jump to headingcallback: () => void

Invoked once the operation completes.

Return Type Jump to heading

boolean

false if the stream wishes for the calling code to wait for the 'drain' event to be emitted before continuing to write additional data; otherwise true.

Jump to headingWriteStream.prototype.cursorTo(
x: number,
callback: () => void,
): boolean

Parameters Jump to heading

Jump to headingcallback: () => void

Return Type Jump to heading

boolean
Back to top