Skip to main content

Module event_loop

Module event_loop 

Source
Expand description

Main TUI event loop orchestration.

Drives the terminal draw → event → dispatch cycle using tokio::select! across terminal, session, result, watchdog and tick channels. Each iteration redraws the UI, then waits for whichever source fires first.

§Examples

run_event_loop(
    &mut terminal, &mut app, cwd, registry,
    &mut session, &mut bus, bridge, tx, rx, rtx, rrx,
).await?;

Functions§

run_event_loop
Drive the TUI draw-event-dispatch loop until quit.