{"id":23772130,"url":"https://github.com/connorjs/query-terminal","last_synced_at":"2026-04-01T20:30:17.615Z","repository":{"id":144974495,"uuid":"616736352","full_name":"connorjs/query-terminal","owner":"connorjs","description":"NodeJS module to query for terminfo capabilities using XTGETTCAP","archived":false,"fork":false,"pushed_at":"2023-03-21T02:35:42.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T20:57:34.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/connorjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-21T01:16:33.000Z","updated_at":"2023-09-08T00:10:38.000Z","dependencies_parsed_at":"2023-03-29T00:48:20.660Z","dependency_job_id":null,"html_url":"https://github.com/connorjs/query-terminal","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"3832651abde4d82b17fe9bda9d8e37a8f3f53745"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorjs%2Fquery-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorjs%2Fquery-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorjs%2Fquery-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connorjs%2Fquery-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connorjs","download_url":"https://codeload.github.com/connorjs/query-terminal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958312,"owners_count":19724926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-01T04:52:59.234Z","updated_at":"2026-04-01T20:30:17.560Z","avatar_url":"https://github.com/connorjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# query-terminal\n\n\u003e Query for terminfo capabilities using XTGETTCAP\n\n## Install\n\n```shell\nnpm install query-terminal\n```\n\n## Usage\n\n```js\nimport { queryTerminal } from \"query-terminal\";\n\nconst answer = await queryTerminal(`\u003csome capability\u003e`);\nconsole.log(answer);\n```\n\n## Context\n\nThe [supports-hyperlink] issue about [Kitty support][kitty-support] led me to\n[Kitty’s _Query terminal_ docs][kitty-docs] and [XTerm Control\nSequences][xterm-control-sequences]. I figured I would publish my script as a\nmodule, lest I forget everything I learned about XTGETTCAP in Node.\n\n[supports-hyperlink]: https://github.com/jamestalmage/supports-hyperlinks#readme\n[kitty-support]: https://github.com/jamestalmage/supports-hyperlinks/issues/10\n[kitty-docs]: https://sw.kovidgoyal.net/kitty/kittens/query_terminal/\n[xterm-control-sequences]: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html\n\n## License\n\nMIT © [Connor Sullivan](https://github.com/connorjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorjs%2Fquery-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnorjs%2Fquery-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnorjs%2Fquery-terminal/lists"}