ERASE_LINE

import { ERASE_LINE } from "jsr:@ende/cli/unstable-ansi";

variable ยท experimental

const ERASE_LINE: "\u001b[2K"

Erases entire line content.

Returns

The ANSI escape code for erasing the entire line content.

Example: Usage

import { delay } from "@ende/async/delay";
import * as Ansi from "@ende/cli/unstable-ansi";

console.log("Hello World!");
await delay(1000);
console.log(Ansi.moveCursorUp() + Ansi.ERASE_LINE);

Source