Crates.io | terminal_hyperlink |
lib.rs | terminal_hyperlink |
version | 0.1.0 |
source | src |
created_at | 2023-08-12 00:30:27.824217 |
updated_at | 2023-08-12 00:30:27.824217 |
description | Uses a trait to style text with hyperlink escape codes in rust. |
homepage | |
repository | https://github.com/AlexanderFlesher/terminal_hyperlink |
max_upload_size | |
id | 942492 |
size | 3,225 |
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.