SOFT_RESET
import { SOFT_RESET } from "jsr:@ende/cli/unstable-ansi";variable ยท experimental
const SOFT_RESET: "\u001b[!p"This command resets many settings to their initial state without fully
reinitializing the terminal like HARD_RESET. It preserves
things like cursor position and display content, but clears modes,
character sets, etc. Should probably be called when exiting the program.
Returns
The ANSI escape code for soft 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.SOFT_RESET);