Restore cursor on exit
This commit is contained in:
parent
fe424b3376
commit
79e8813884
1 changed files with 2 additions and 1 deletions
|
|
@ -23,8 +23,9 @@ pub struct Terminal {
|
||||||
|
|
||||||
impl Drop for Terminal {
|
impl Drop for Terminal {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
let _ = self.out.execute(LeaveAlternateScreen);
|
|
||||||
let _ = crossterm::terminal::disable_raw_mode();
|
let _ = crossterm::terminal::disable_raw_mode();
|
||||||
|
let _ = self.out.execute(LeaveAlternateScreen);
|
||||||
|
let _ = self.out.execute(Show);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue