$ supports-hyperlinks
v3.2.0MAJOR UPDATEDetects whether a terminal supports rendering hyperlinks.
Latest Update Summary
Crate
Name: supports-hyperlinks New version: 3.2.0 Release date: 2025-12-17T03:39:03.709710Z
Crate readme
Short description Detects whether the current terminal supports hyperlinks in terminal emulators.
Long description This crate detects and supports all known terminals and terminal families that support hyperlinks. It provides a simple API to check if the terminal on stdout supports hyperlinks. Additionally, users can force hyperlink detection using an environment variable. The minimum supported Rust version is 1.70.0.
Features • hyperlink detection • supports multiple terminal families • FORCE_HYPERLINK environment variable
Code Examples Basic usage
use supports_hyperlinks::Stream;
if supports_hyperlinks::on(Stream::Stdout) {
println!("This terminal supports hyperlinks on stdout");
} else {
println!("No hyperlinks, please");
}
Links • https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
https://docs.rs/supports-hyperlinks https://api.github.com/repos/zkat/supports-hyperlinks/releases/49384142
Release info
Release version:
Release description
Code Examples
Minor update: 3.1.0 → 3.2.0
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add supports-hyperlinksOr add to Cargo.toml: supports-hyperlinks = "3.2.0"