Skip to content

Commit

Permalink
Fix render issue when using console crate as the terminal backend. (#…
Browse files Browse the repository at this point in the history
…230)

* Fix frame rendering when using console crate

* Add changelog entry
  • Loading branch information
mikaelmello authored Mar 10, 2024
1 parent eee91f7 commit 5ed6fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 5ed6fbe

Please sign in to comment.