pub fn setup_terminal() -> Result<Terminal<CrosstermBackend<Stdout>>>
Set up the terminal for TUI rendering