pub(crate) fn event_loop<B: Backend>(
term: &mut Terminal<B>,
app: &mut App,
path: &str,
events: impl IntoIterator<Item = Result<Event>>,
) -> Result<()>Expand description
Draw, then handle one event, until the app quits or events runs dry.