DISABLE_ORIGIN_MODE
import { DISABLE_ORIGIN_MODE } from "jsr:@ende/cli/unstable-ansi";variable ยท experimental
const DISABLE_ORIGIN_MODE: "\u001b[?6l"Causes the top and bottom margins to enlarge to the user's display. See
ENABLE_ORIGIN_MODE.
Returns
The ANSI escape code for disabling origin mode.
Example: Usage
import { delay } from "@ende/async/delay";
import * as Ansi from "@ende/cli/unstable-ansi";
console.log(
Ansi.ERASE_DISPLAY +
Ansi.setCursorPosition() +
"Hello World" +
Ansi.setScrollableRegion(2) +
Ansi.ENABLE_ORIGIN_MODE,
);
await delay(1000);
console.log(Ansi.setCursorPosition() + "Bye World!");
await delay(1000);
console.log(
Ansi.DISABLE_ORIGIN_MODE +
Ansi.setCursorPosition() +
Ansi.ERASE_LINE +
"Hi World!",
);