Crate terminfo_lean

Crate terminfo_lean 

Source
Expand description

§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 (thiserror only)
  • 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.

Modules§

expand
Expansion of capability strings with parameters
locate
Search for terminfo database file for the terminal
parse
Parsing terminfo database files