Terminal emulator detector
It works using 3 methods.
TERMINAL
environment variable TERMINAL
environment variable.$PATH
search $PATH
.Run fish in private mode in a terminal window. Don't close the window when the command ends.
```rust use std::process::Command; use term_detect::{DetectionError, InTerminalAuto};
fn main() -> Result<(), DetectionError> { let child = Command::new("fish") .arg("--private") // Konsole-specific flag .interminalargs(["--noclose"])? .spawn()? .wait()?; Ok(()) } ```