termprofile 0.2.3

A library to detect and handle terminal color/styling support
Documentation
1
2
3
4
5
6
7
8
use std::io::stdout;

use termprofile::{DetectorSettings, TermProfile};

fn main() {
    let profile = TermProfile::detect(&stdout(), DetectorSettings::with_query().unwrap());
    println!("Detected profile: {profile:?}");
}