Expand description
Terminal UI for i18n translation progress.
- Interactive mode: a two-line ratatui inline scan viewport (files checked / found, Ctrl+C hint) that never takes over the screen, keeps the cursor hidden, and scrolls log lines above itself; then a ratatui elastic alternate-screen board (live token pool matrix, active translation stream with smart folding, and global footer with concurrency and token totals); finished and failed tasks scroll into terminal history.
- Non-interactive mode (CI, pipes, Node bindings): line-by-line stderr output, no color.
Interruption is not wired to a signal inside this crate: the caller forwards its platform signal
to Ui::interrupt, keeping the library independent of any async runtime.
Structs§
- Interrupt
- Interrupt handle: the async side sets it, the interactive render stage polls it
- Job
- Task handle; dropping without calling
Job::done/Job::failcounts as cancellation - Pool
Stat - Global concurrency pool metrics
- Reply
- Reply output callback; when
txisNone(non-interactive mode) it passes through and sends nothing - Retry
- Failure retry callback
- Slot
Meta - Static metadata of a single
(endpoint, token)slot - SlotRow
- Live telemetry row for a single slot
- Ui
- UI handle: lightweight, shareable by reference across concurrent tasks;
dropprints the summary and restores the terminal
Enums§
Functions§
- note
- Emit a note immediately, with the same format as non-interactive mode