terminfo_lean/
lib.rs

1// Copyright 2025 Pavel Roskin
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! # Terminfo parsing library with simple API and minimal dependencies
10//!
11//! ## Provided Functionality
12//!
13//! * Find the terminfo database for the given terminal.
14//! * Parse the terminfo database.
15//! * Expand capabilities with parameters.
16//!
17//! ## Why another terminfo library?
18//!
19//! * Full support for extended capabilities
20//! * MIT + Apache 2.0 license (no obscene or obscure licenses)
21//! * Extensive unit test coverage
22//! * Minimal dependencies (`thiserror` only)
23//! * Lean code - no termcap, no Windows console, no unrelated stuff
24//! * UTF-8 is only used for capability names
25//! * 8-bit clean - string capabilities are byte slices
26//! * Minimal memory allocations
27//!
28//! ## Credits
29//!
30//! The capability expansion code is based on the `term` crate with
31//! significant changes.
32
33pub mod expand;
34pub mod locate;
35pub mod parse;