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

x/lume/deps/cliffy.ts>getCursorPosition

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function getCursorPosition
Re-export
import { getCursorPosition } from "https://deno.land/x/lume@v1.14.1/deps/cliffy.ts";

Get cursor position.

Parameters

optional
unnamed 0: CursorPositionOptions = [UNSUPPORTED]

Options.

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