From 185b53bf79298400ed6e306381f207fb1736021e Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 17 Jul 2025 15:43:26 -0500 Subject: [PATCH] Fix rendering of `uv venv --clear` hint in bash --- crates/uv-console/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/uv-console/src/lib.rs b/crates/uv-console/src/lib.rs index 24c5eea163e40..1da7efdf18c81 100644 --- a/crates/uv-console/src/lib.rs +++ b/crates/uv-console/src/lib.rs @@ -84,6 +84,9 @@ fn confirm_inner( if hint.is_some() { term.clear_last_lines(2)?; + // It's not clear why we need to clear to the end of the screen here, but it fixes lingering + // display of the hint on `bash` (the issue did not reproduce on `zsh`). + term.clear_to_end_of_screen()?; } else { term.clear_line()?; }