terminfo-lean
Terminfo parsing library with simple API and minimal dependencies
Provided Functionality
- Find the terminfo database for the given terminal.
- Parse the terminfo database.
- Expand capabilities with parameters.
Why another terminfo library?
- Full support for extended capabilities
- MIT + Apache 2.0 license (no obscene or obscure licenses)
- Extensive unit test coverage
- Minimal dependencies (
thiserroronly) - Lean code - no termcap, no Windows console, no unrelated stuff
- UTF-8 is only used for capability names
- 8-bit clean - string capabilities are byte slices
- Minimal memory allocations
Credits
The capability expansion code is based on the term crate with significant
changes.
License
Licensed at your option under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)