moveCursorDown
import { moveCursorDown } from "jsr:@ende/cli/unstable-ansi";function ยท experimental
function moveCursorDown(x: number = 1): stringMoves cursor position down x lines or up to the bottom margin.
x: number = 1The number of lines to move down.
Returns
The ANSI escape code for moving the cursor down.
Example: Usage
import { delay } from "@ende/async/delay";
import * as Ansi from "@ende/cli/unstable-ansi";
console.log("Hello\nWorld!");
await delay(1000);
console.log(
Ansi.moveCursorUpStart(2) +
"Goodbye" +
Ansi.moveCursorDown() +
Ansi.setCursorColumn() +
Ansi.ERASE_LINE +
"Bob!",
);