We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38dc563 commit 40af869Copy full SHA for 40af869
crates/cli/src/utils/mod.rs
@@ -74,6 +74,8 @@ pub fn run_in_alternate_screen<T>(f: impl FnOnce() -> Result<T>) -> Result<T> {
74
execute!(stdout(), EnterAlternateScreen)?;
75
clear()?;
76
let ret = f();
77
+ // it is possible f panics and leaves the terminal in alternate screen mode
78
+ // this may not be worth handling, see #1499
79
execute!(stdout(), LeaveAlternateScreen)?;
80
ret
81
}
0 commit comments