Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 952 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 952 Bytes

query-terminal

Query for terminfo capabilities using XTGETTCAP

Install

npm install query-terminal

Usage

import { queryTerminal } from "query-terminal";

const answer = await queryTerminal(`<some capability>`);
console.log(answer);

Context

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.

License

MIT © Connor Sullivan