moveCursorUpStart
import { moveCursorUpStart } from "jsr:@ende/cli/unstable-ansi";function ยท experimental
function moveCursorUpStart(x: number = 1): stringMoves cursor position x lines up or up to the top of the margin, and to
the beginning of that line.
x: number = 1The number of lines to move up.
Returns
The ANSI escape code for moving the cursor up and to the beginning of the line.
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");