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//! This crate provides facilities to
12//!
13//! * find the terminfo database for the given terminal
14//! * parse the terminfo database and
15//! * expand capabilities with parameters.
16//!
17//! Features:
18//!
19//! * full support for extended capabilities
20//! * simple API
21//! * extensive unit test coverage
22//!
23//! Why another terminfo library?
24//!
25//! * MIT + Apache 2.0 license (no obscenities or obscure licenses)
26//! * minimal dependencies (`thiserror` only)
27//! * truly lean - no termcap, no Windows console, no unrelated stuff
28//! * UTF-8 is only used for capability names
29//! * 8-bit clean - string capabilities are byte slices
30//! * minimal memory allocations
31//!
32//! Credits
33//!
34//! The capability expansion code is based on the `term` crate with
35//! significant changes.
36
37pub mod expand;
38pub mod locate;
39pub mod parse;