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

Usage in Deno

import { promises } from "node:readline";
Readline.prototype.clearLine(dir: Direction): this

The rl.clearLine() method adds to the internal list of pending action an action that clears current line of the associated stream in a specified direction identified by dir. Call rl.commit() to see the effect of this method, unless autoCommit: truewas passed to the constructor.

Parameters

Return Type

this

this