Registry / utility / supports-hyperlinks

supports-hyperlinks

JSON →
library3.2.0rscratesunverified

Detects whether a terminal supports rendering hyperlinks.

# Cargo.toml [dependencies] supports-hyperlinks = "3.2.0"
INSTALL
IMPORT
SIG · SUPPORTS-HYPERLINK
S
supports-hyperlinks
utilityrustv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

supports_hyperlinks
use supports_hyperlinks::supports_hyperlinks;

Check if the current terminal supports hyperlinks.

use supports_hyperlinks::supports_hyperlinks; fn main() { if supports_hyperlinks() { println!("Terminal supports hyperlinks"); } else { println!("No hyperlink support"); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
supports-hyperlinks — cargo add supports-hyperlinks · libregistry