pub fn event_loop<B: Backend>( terminal: &mut Terminal<B>, app: &mut App, ) -> Result<()>
The loop, generic over the backend so a test can drive it.