pub fn env_speaks_kitty(env: impl Fn(&str) -> Option<String>) -> bool
Terminal emulators announce themselves through env vars; env looks one up.
env