close
Skip to main content

@std/cli@1.0.30
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score94%
License
MIT
Downloads30,747/wk
Publisheda week ago (1.0.30)

Tools for creating interactive command line tools

Functions

f
askForCursorPositionSync(): { row: number; column: number; } | null

This function asks the terminal for the cursor's current position. Information entered by the user will be discarded while requesting the cursor position. The cursor position may have also moved in this time due to the user entering information. Due to the sync nature of this function, it is not recommended to use this function frequently. Instead Ansi.SAVE_CURSOR and Ansi.RESTORE_CURSOR should be used when possible.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/cli

Import symbol

import * as mod from "@std/cli/unstable-get-cursor";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/cli/unstable-get-cursor";