Crate terminfo_lean

Crate terminfo_lean 

Source
Expand description

Terminfo parsing library with simple API and minimal dependencies

This crate provides facilities to

  • find the terminfo database for the given terminal
  • parse the terminfo database and
  • expand capabilities with parameters.

Features:

  • full support for extended capabilities
  • simple API
  • extensive unit test coverage

Why another terminfo library?

  • MIT + Apache 2.0 license (no obscenities or obscure licenses)
  • minimal dependencies (thiserror only)
  • truly lean - 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