Query for terminfo capabilities using XTGETTCAP
npm install query-terminal
import { queryTerminal } from "query-terminal";
const answer = await queryTerminal(`<some capability>`);
console.log(answer);
The supports-hyperlink issue about Kitty support led me to Kitty’s Query terminal docs and XTerm Control Sequences. I figured I would publish my script as a module, lest I forget everything I learned about XTGETTCAP in Node.
MIT © Connor Sullivan