{"id":21379245,"url":"https://github.com/craigbarnes/lua-terminfo-parser","last_synced_at":"2025-03-16T10:25:30.502Z","repository":{"id":234714162,"uuid":"789396502","full_name":"craigbarnes/lua-terminfo-parser","owner":"craigbarnes","description":"Mirrored from https://gitlab.com/craigbarnes/lua-terminfo-parser","archived":false,"fork":false,"pushed_at":"2025-02-19T22:10:03.000Z","size":984,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T23:22:44.594Z","etag":null,"topics":["escape-codes","escape-sequences","lua","ncurses","parser","parser-library","terminal","terminfo","terminfo-data","terminfo-files","terminfo-parser","terminfo-parsing-library"],"latest_commit_sha":null,"homepage":"https://gitlab.com/craigbarnes/lua-terminfo-parser","language":"Lua","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigbarnes.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":"2024-04-20T12:34:50.000Z","updated_at":"2025-02-19T22:10:07.000Z","dependencies_parsed_at":"2025-01-22T22:37:16.292Z","dependency_job_id":null,"html_url":"https://github.com/craigbarnes/lua-terminfo-parser","commit_stats":null,"previous_names":["craigbarnes/lua-terminfo-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Flua-terminfo-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Flua-terminfo-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Flua-terminfo-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigbarnes%2Flua-terminfo-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigbarnes","download_url":"https://codeload.github.com/craigbarnes/lua-terminfo-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243854471,"owners_count":20358614,"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":["escape-codes","escape-sequences","lua","ncurses","parser","parser-library","terminal","terminfo","terminfo-data","terminfo-files","terminfo-parser","terminfo-parsing-library"],"created_at":"2024-11-22T10:18:11.819Z","updated_at":"2025-03-16T10:25:30.446Z","avatar_url":"https://github.com/craigbarnes.png","language":"Lua","readme":"terminfo-parser\n===============\n\nThis is a [Lua] parser for the [terminfo] source format used by\n[ncurses]. It's intended to allow querying and transforming the\n[database] via scripting, in a manner that's more flexible and\nperformant than using the command-line tools (i.e. [`infocmp`],\n[`tput`], etc.).\n\n**Note**: This library is not intended to replace the terminfo or curses\nC APIs. Many control sequences in the database *must* be passed through\n[`tparm(3)`] and/or [`tputs(3)`] before being sent to a terminal. Use\nLua bindings for the C APIs if you need a terminal control library.\n\nUsage\n-----\n\nSee the scripts in the [`examples/`] directory for a demonstration of\nhow to use the library and the kinds of queries that can be performed.\nFor quick reference, the output for most of these scripts can also be\nfound under [`examples/output/`].\n\nSince the intended use case of the library is running ad-hoc queries on\n[`terminfo.src`], there are no official packages or versioned releases.\n\nRequirements\n------------\n\n* [Lua] ⩾ 5.1\n* [LPeg] ⩾ 1.0\n\nLicense\n-------\n\nCopyright © 2018-2024 Craig Barnes.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU [General Public License version 3], as published\nby the Free Software Foundation.\n\nThis program is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General\nPublic License version 3 for more details.\n\n\n[Lua]: https://www.lua.org/\n[LPeg]: https://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html\n[terminfo]: https://invisible-island.net/ncurses/man/terminfo.5.html\n[database]: https://invisible-island.net/ncurses/#download_database\n[ncurses]: https://invisible-island.net/ncurses/\n[`tput`]: https://invisible-island.net/ncurses/man/tput.1.html\n[`infocmp`]: https://invisible-island.net/ncurses/man/infocmp.1m.html\n[`tparm(3)`]: https://invisible-island.net/ncurses/man/curs_terminfo.3x.html#h3-Formatting-Output\n[`tputs(3)`]: https://invisible-island.net/ncurses/man/curs_terminfo.3x.html#h3-Output-Functions\n[`examples/`]: https://gitlab.com/craigbarnes/lua-terminfo-parser/-/tree/master/examples\n[`examples/output/`]: https://gitlab.com/craigbarnes/lua-terminfo-parser/-/tree/master/examples/output\n[`terminfo.src`]: https://gitlab.com/craigbarnes/lua-terminfo-parser/-/blob/master/terminfo.src\n[General Public License version 3]: https://www.gnu.org/licenses/gpl-3.0.txt\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigbarnes%2Flua-terminfo-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigbarnes%2Flua-terminfo-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigbarnes%2Flua-terminfo-parser/lists"}