connorjs / query-terminal

NodeJS module to query for terminfo capabilities using XTGETTCAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NodeJS module to query for terminfo capabilities using XTGETTCAP

License:MIT License


Languages

Language:JavaScript 100.0%