RESTORE_CURSOR
import { RESTORE_CURSOR } from "jsr:@ende/cli/unstable-ansi";variable ยท experimental
const RESTORE_CURSOR: "\u001b8"Restores:
- cursor position
- graphic rendition
- character set shift state
- state of wrap flag
ENABLE_AUTO_WRAP - state of origin mode
ENABLE_ORIGIN_MODE - selective eraser
Can be saved with SAVE_CURSOR.
Returns
The ANSI escape code for restoring cursor.
Example: Usage
import * as Ansi from "@ende/cli/unstable-ansi";
console.log(
Ansi.SAVE_CURSOR +
Ansi.setCursorPosition(Ende.consoleSize().rows) +
Ansi.ERASE_LINE +
"Hello World!" +
Ansi.RESTORE_CURSOR,
);