x/cliffy/ansi/mod.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function getCursorPosition
import { getCursorPosition } from "https://deno.land/x/cliffy@v0.20.1/ansi/mod.ts?s=getCursorPosition";

Get cursor position.

Parameters

optional
unnamed 0: CursorPositionOptions
[src]

Options.

const cursor: Cursor = getCursorPosition();
console.log(cursor); // { x: 0, y: 14}
import getCursorPosition
import { getCursorPosition } from "https://deno.land/x/cliffy@v0.20.1/ansi/mod.ts?s=getCursorPosition";