Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Readline.prototype.clearLine
Re-export
import { Readline } from "https://deno.land/std@0.160.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