HIDE_CURSOR

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

variable ยท experimental

const HIDE_CURSOR: "\u001b[?25l"

Causes cursor position to be hidden from the user. See also SHOW_CURSOR.

Returns

The ANSI escape code to hide the cursor.

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

Source