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:?}"); }