Skip to content

NodeJS module to query for terminfo capabilities using XTGETTCAP

License

Notifications You must be signed in to change notification settings

connorjs/query-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks