cursorTo

fun cursorTo(x: Number, y: Number = definedExternally, callback: () -> Unit = definedExternally): Boolean(source)

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

Since

v0.7.7

Return

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.

Parameters

callback

Invoked once the operation completes.


fun cursorTo(x: Number, callback: () -> Unit): Boolean(source)