Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix render issue when using console crate as the terminal backend. #230

Merged
merged 3 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## [Unreleased] <!-- ReleaseDate -->

- 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

Expand Down
2 changes: 1 addition & 1 deletion inquire/src/terminal/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down
Loading