diff --git a/CHANGELOG.md b/CHANGELOG.md index 9997cfe9..a7e986dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ## [Unreleased] -- No changes since the latest release below. +- Fix render issue [#228](https://github.com/mikaelmello/inquire/pull/228) when using `console` crate as the terminal backend. Thanks @maospr for reporting. ## [0.7.0] - 2024-02-24 diff --git a/inquire/src/terminal/console.rs b/inquire/src/terminal/console.rs index 7def0731..1c56c487 100644 --- a/inquire/src/terminal/console.rs +++ b/inquire/src/terminal/console.rs @@ -91,7 +91,7 @@ impl Terminal for ConsoleTerminal { } fn clear_until_new_line(&mut self) -> Result<()> { - self.term.clear_to_end_of_screen() + write!(self.term, "\x1b[K") } fn cursor_hide(&mut self) -> Result<()> {