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

pub fn render_with_input(
    out: impl Write,
    progress: impl Root,
    options: Options,
    events: impl Stream<Item = Event> + Send + Unpin
) -> Result<impl Future<Output = ()>, Error>
Expand description

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.