Expand description
Main entry point for the TUI dashboard.
This module ties together all the TUI components and provides the main event loop for the terminal user interface. It handles:
- Terminal setup and restoration
- Channel creation for worker communication
- The main event loop with input handling and rendering
- Graceful shutdown coordination
Re-exports§
pub use app::App;pub use worker::SensorWorker;
Modules§
- app
- Application state for the TUI.
- errors
- User-friendly error message formatting.
- input
- Keyboard input handling for the TUI.
- messages
- Message types for TUI communication between UI and worker threads.
- ui
- Main UI layout and rendering for the TUI dashboard.
- worker
- Background worker for BLE sensor operations.
Enums§
- Command
- Commands sent from the UI thread to the background worker.
- Sensor
Event - Events sent from the background worker to the UI thread.
Functions§
- restore_
terminal - Restore the terminal to its original state.
- run
- Run the TUI application.
- setup_
terminal - Set up the terminal for TUI rendering.