Expand description
Terminal UI module.
This module contains all ratatui / crossterm code and is responsible purely for presentation and interaction. It talks to the rest of the application through:
RommClient(HTTP / data access),core::cache::RomCache(disk-backed ROM cache), andcore::download::DownloadManager(background ROM downloads).
Keeping those "service" types UI-agnostic makes it easy to add other frontends (e.g. a GUI) reusing the same core logic.
Modules§
- app
- Application state and TUI event loop.
- openapi
- Parse a subset of OpenAPI 3.x JSON into a flat endpoint list for the TUI expert browser.
- openapi_
sync - Load the RomM OpenAPI spec for the API browser: prefer the live server, fall back to cache,
then a bundled copy shipped in the binary so the TUI always starts without manual
openapi.json. - screens
- Collection of individual TUI screens.
- utils
Functions§
- run
- Launch the TUI when the caller already has a
RommClientandConfig. - run_
interactive - Load config, run first-time setup in the terminal if
API_BASE_URLis missing, then start the TUI.