Skip to main content

Crate resq_tui

Crate resq_tui 

Source
Expand description

Shared TUI components and themes for ResQ developer tools. Inspired by binsider architecture.

Re-exports§

pub use crossterm;
pub use ratatui;

Modules§

terminal
Terminal lifecycle helpers — init, restore, and event-loop runner.

Structs§

Theme
Standard ResQ TUI Theme.

Constants§

SPINNER_FRAMES
Spinner animation frames for loading indicators.

Functions§

centered_rect
Helper to create a centered rectangle for popups.
draw_footer
Renders a standardized footer with keyboard shortcuts.
draw_header
Renders a standardized header with service metadata and PID.
draw_popup
Renders a centered popup for help or errors.
draw_tabs
Renders a standardized tab bar.
format_bytes
Formats bytes into human-readable units.
format_duration
Formats seconds into human-readable duration.