shiftUpAndInsert

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

function ยท experimental

function shiftUpAndInsert(x: number = 1): string

Shifts content within the scrollable region up x lines, inserting blank lines at the bottom of the scrollable region.

x: number = 1

The number of lines content should be shifted up.

Returns

The ANSI escape code for shifting content up.

Example: Usage

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

console.log(Ansi.shiftUpAndInsert());

Source