Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/ansi/cursor_position.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://deno.land/x/cliffy@v0.20.1/ansi/cursor_position.ts";

Get cursor position.

Parameters

optional
unnamed 0: CursorPositionOptions = [UNSUPPORTED]

Options.

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