fn run_loop<B>(terminal: &mut Terminal<B>, app: &mut App) -> Result<()>where B: Backend, B::Error: Send + Sync + 'static,