pub fn run_loop(terminal: &mut Terminal<CrosstermBackend<Stdout>>) -> Result<()>
Main event loop for the TUI