terminal_hyperlink

Crates.ioterminal_hyperlink
lib.rsterminal_hyperlink
version0.1.0
sourcesrc
created_at2023-08-12 00:30:27.824217
updated_at2023-08-12 00:30:27.824217
descriptionUses a trait to style text with hyperlink escape codes in rust.
homepage
repositoryhttps://github.com/AlexanderFlesher/terminal_hyperlink
max_upload_size
id942492
size3,225
Alexander Flesher (AlexanderFlesher)

documentation

README

terminal-hyperlink

This crate uses a trait to style terminal text with the escape code for url hyperlinks.

use terminal_hyperlink::Hyperlink;

fn main() {
  println!("{}", "Hello World!".hyperlink("https://github.com/AlexanderFlesher/terminal_hyperlink"));
}

To detect whether your terminal supports hyperlinks, you should use the supports-hyperlinks crate.

Commit count: 2

cargo fmt