shiftDownAndInsert

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

function ยท experimental

function shiftDownAndInsert(x: number = 1): string

Shifts content within the scrollable region down x lines, inserting blank lines at the top of the scrollable region.

x: number = 1

The number of lines content should be shifted down.

Returns

The ANSI escape code for shifting content down.

Example: Usage

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

console.log(Ansi.shiftDownAndInsert(3));

Source