[go: up one dir, main page]

supports-color 1.1.1

Detects whether a terminal supports color, and gives details about that support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[test]
fn cached_multithreaded() {
    (0..12)
        .map(|_| {
            std::thread::spawn(|| {
                for _ in 0..1000 {
                    supports_color::on_cached(supports_color::Stream::Stdout);
                }
            })
        })
        .for_each(|thread| thread.join().unwrap());
}