detect-terminal
Detect the terminal program currently being used, with support for iTerm, Terminal.app, Hyper, iTerm, ConEmu, Cmde,r Alacritty, Xterm, Terminator, Termux, Kitty, and many others. This can't be done reliably in all cases, but it's useful when available.
kitty-version
Get the version of the currently running kitty window, or undefined otherwise.