Skip to main content

Module tui

Module tui 

Source
Expand description

putzen caches interactive cache cleanup TUI.

Re-exports§

pub use command::Command;
pub use effect::Effect;
pub use filter::Filter;
pub use msg::Msg;
pub use runtime::enter_tui;
pub use runtime::leave_tui;
pub use runtime::run_loop;
pub use runtime::Term;
pub use state::Loading;
pub use state::Modal;
pub use state::Overlay;
pub use state::RunOutcome;
pub use state::State;
pub use state::SPINNER_FRAMES;
pub use update::update;

Modules§

command
Pure aggregator returned by update. Reimplements the pattern of crux_core::command::Command<Effect, Event> with no external dependency.
effect
IO descriptions yielded by update. The runtime’s EffectRunner is the only place these are realised; each variant fixes which Msg is emitted back into the loop on completion.
filter
/-style substring filter applied to the left list.
keys
Map crossterm KeyEvents to TUI Msg.
msg
All inputs the pure update reacts to.
runtime
Event loop, effect runner, terminal lifecycle.
state
TUI application state.
update
Pure update(State, Msg) -> (State, Command<Effect, Msg>).
view
Render the whole screen. Pure function from State → frame buffer.
widgets
Theme + small reusable rendering helpers.