HARD_RESET

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

variable ยท experimental

const HARD_RESET: "\u001bc"

This is a full reset of the terminal, reverting it back to its original default settings, clearing the screen, resetting modes, colors, character sets and more. Essentially making the terminal behave as if it were just started by the user. This command is very disruptive to the user. Also see SOFT_RESET.

Returns

The ANSI escape code for hard resetting the terminal.

Example: Usage

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

console.log(Ansi.HIDE_CURSOR);
await delay(5000);
console.log(Ansi.HARD_RESET);

Source