pub async fn run_tui(
node: Arc<Node>,
ui_notify_rx: UnboundedReceiver<UiNotification>,
web_port: u16,
) -> Result<()>Expand description
Initializes and runs the terminal user interface.
This function sets up the logging, UI communication channels,
initializes the TerminalUI, and spawns various background tasks
for handling events, actions, and network notifications.
§Arguments
node- A shared reference to the application’s coreNode.ui_notify_rx- Receiver for UI notifications from other parts of the application.web_port- The port on which the web UI is running.
§Errors
Returns an error if the terminal UI fails to run.