nu-ansi-term 0.50.3

Library for ANSI terminal colors and styles (bold, underline)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use nu_ansi_term::Color;
mod may_sleep;
use may_sleep::{parse_cmd_args, sleep};

fn main() {
    #[cfg(all(windows, feature = "std"))]
    nu_ansi_term::enable_ansi_support().unwrap();

    let sleep_ms = parse_cmd_args();
    let link = Color::Blue
        .underline()
        .paint("Link to example.com")
        .hyperlink("https://example.com");

    println!("{}", link);
    sleep(sleep_ms);
}