setCursorColumn
import { setCursorColumn } from "jsr:@ende/cli/unstable-ansi";function ยท experimental
function setCursorColumn(x: number = 1): stringSets cursor position to column x or up to the sides of the margins.
Columns begin at 1 not 0.
x: number = 1The column to move to.
Returns
The ANSI escape code for setting the cursor column.
Example: Usage
import { delay } from "@ende/async/delay";
import * as Ansi from "@ende/cli/unstable-ansi";
console.log("Hello World!");
await delay(1000);
console.log(
Ansi.moveCursorUp() +
Ansi.setCursorColumn(7) +
"and Goodbye!",
);