Fix rendering of `uv venv --clear` hint in bash (#14691)

Closes https://github.com/astral-sh/uv/issues/14688
This commit is contained in:
Zanie Blue 2025-07-17 15:52:31 -05:00
parent 5b716c4e50
commit ac35377132
1 changed files with 3 additions and 0 deletions

View File

@ -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()?;
}