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.
function clearLine
import { clearLine } from "https://deno.land/std@0.115.1/node/internal/readline/callbacks.js";

clears the current line the cursor is on: -1 for left of the cursor +1 for right of the cursor 0 for the entire line

Parameters

stream
dir
callback