promises.Readline.prototype.cursorTo - Node documentation
method promises.Readline.prototype.cursorTo

Usage in Deno

import { promises } from "node:readline";
Readline.prototype.cursorTo(
x: number,
y?: number,
): this

The rl.cursorTo() method adds to the internal list of pending action an action that moves cursor to the specified position in the associated stream. Call rl.commit() to see the effect of this method, unless autoCommit: truewas passed to the constructor.

Parameters

x: number
optional
y: number

Return Type

this

this