Skip to main content
Deno 2 is finally here 🎉️
Learn more
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
Re-export
import { getCursorPosition } from "https://deno.land/x/cliffy@v0.17.0/ansi/mod.ts";

Get cursor position.

Parameters

Options.

const cursor: Cursor = getCursorPosition();
console.log(cursor); // { x: 0, y: 14}