Skip to main content

tb_tui_common/
lib.rs

1//! tui-common — shared helpers used by ratatui-based TUIs `ebman` and
2//! `pgman` (and any future siblings).
3//!
4//! What lives here:
5//! - [`font_probe`] — pre-TUI terminal probe that decides whether the
6//!   user's font renders Powerline / Nerd Font glyphs at one cell each.
7//! - [`overlay`] — centred-popup sizing (`OverlaySize` categories +
8//!   `centered_overlay` / `centered_rect` helpers).
9//! - [`text_input`] — single-line editable buffer with a cursor
10//!   ([`TextInput`]) for modal prompts / filter / command lines.
11//!
12//! What does *not* live here: anything app-specific (AWS SDK clients,
13//! Postgres connection code, EB-flavoured theme palettes, …). Pure
14//! reusable plumbing only.
15
16pub mod font_probe;
17pub mod overlay;
18pub mod splash;
19pub mod text_input;
20pub mod theme;
21pub mod util;
22
23pub use text_input::TextInput;