[][src]Function prodash::tui::render_with_input

pub fn render_with_input(
    progress: Root,
    options: TuiOptions,
    events: impl Stream<Item = Event> + Send
) -> Result<impl Future<Output = ()>, Error>

Returns a future that draws the terminal user interface indefinitely.

  • progress is the progress tree whose information to visualize. It will usually be changing constantly while the TUI holds it.
  • options are configuring the TUI.
  • events is a stream of Events which manipulate the TUI while it is running

Failure may occour if there is no terminal to draw into.