ENABLE_AUTO_WRAP

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

variable ยท experimental

const ENABLE_AUTO_WRAP: "\u001b[?7h"

Causes cursor to automatically move to the next line when it hits the end of the current line to continue writing. See also DISABLE_AUTO_WRAP.

Returns

The ANSI escape code to enable auto-wrap.

Example: Usage

import * as Ansi from "@ende/cli/unstable-ansi";

console.log(Ansi.ENABLE_AUTO_WRAP + "A" + "h".repeat(500));

Source