#hyperlink

terminal_hyperlink

Uses a trait to style text with hyperlink escape codes in rust

1 unstable release

0.1.0 Aug 12, 2023

#7 in #hyperlink

MIT license

3KB

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.

No runtime deps