ERASE_DISPLAY

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

variable ยท experimental

const ERASE_DISPLAY: "\u001b[2J"

Erases all content.

Returns

The ANSI escape code for erasing the entire display.

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.ERASE_DISPLAY);

Source