Module

x/cliffy/ansi/mod.ts>getCursorPosition

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://dotland.deno.dev/x/cliffy@v0.19.0/ansi/mod.ts";

Get cursor position.

Parameters

optional
unnamed 0: CursorPositionOptions = [UNSUPPORTED]

Options.

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