1 unstable release
0.1.0 | Aug 12, 2023 |
---|
#7 in #hyperlink
3KB
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.