term.has_kkbp

term

has_kkbp() -> supported

Check whether the terminal supports the Kitty keyboard protocol

Sends two probes simultaneously: a KKBP flags query (CSI ? u) and a Primary Device Attributes request (CSI c). Whichever response arrives first determines the result: CSI ? <flags> u → supported; CSI ? ... c → not supported.