feather_tui/lib.rs
1//! Feather-Tui is a simple terminal UI library designed to provide building blocks for text-based user interfaces. It started life as a small C library in my school management system project, aiming to offer an easy-to-use UI framework for terminal applications. Now, I’m rewriting it in Rust to learn the language and (hopefully) improve both performance and maintainability.
2
3/// Core building blocks for constructing user interfaces.
4pub mod components;
5/// A generic callback handler for executing functions with stored arguments.
6pub mod callback;
7/// A generic trigger handler for evaluating conditions based on stored arguments.
8pub mod trigger;
9/// Used within a `Container` to navigate and select `Option`.
10pub mod selector;
11/// Acts as a layout manager for the UI elements.
12pub mod container;
13/// Responsible for rendering the UI to the terminal.
14pub mod renderer;
15/// Handles user input, non-blocking key events, and key code conversions with crossterm.
16pub mod input;
17
18mod util;
19mod errmsg;
20
21pub use components as cpn;
22pub use callback as cbk;
23pub use trigger as trg;
24pub use selector as slc;
25pub use container as con;
26pub use renderer as ren;
27pub use input as inp;
28
29use errmsg as emg;