Go to Latest
method Readline.prototype.clearLine
import { Readline } from "https://dotland.deno.dev/std@0.177.0/node/readline/promises.ts";

Clears the current line the cursor is on.

Parameters

dir

Direction to clear: -1 for left of the cursor +1 for right of the cursor 0 for the entire line