From 6be3eae8638e3f2bd1874fd34cafd58101856c1a Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 18 Oct 2022 09:13:59 +0200 Subject: [PATCH] Clear terminal before returning to main menu --- rust/sea_battle_cli_player/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/sea_battle_cli_player/src/main.rs b/rust/sea_battle_cli_player/src/main.rs index cc991cc..9c10284 100644 --- a/rust/sea_battle_cli_player/src/main.rs +++ b/rust/sea_battle_cli_player/src/main.rs @@ -106,6 +106,7 @@ async fn run_app(terminal: &mut Terminal) -> Res { let mut username = "".to_string(); loop { + terminal.clear()?; let choice = SelectPlayModeScreen::default().show(terminal)?; if let ScreenResult::Ok(c) = choice {