DOUBLE_HEIGHT_TOP

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

variable ยท experimental

const DOUBLE_HEIGHT_TOP: "\u001b#3"

Causes content on the current line to enlarge, showing only the top half of characters with each character taking up two columns. Can be used in combination with DOUBLE_HEIGHT_BOTTOM on the next line to make text appear twice as big.

Returns

The ANSI escape code for double-height top.

Example: Usage

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

console.log(Ansi.DOUBLE_HEIGHT_TOP + "Hello World!");
console.log(Ansi.DOUBLE_HEIGHT_BOTTOM + "Hello World!");

Source