Skip to content

Commit 40af869

Browse files
chore: add comment for #1499
1 parent 38dc563 commit 40af869

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/cli/src/utils/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ pub fn run_in_alternate_screen<T>(f: impl FnOnce() -> Result<T>) -> Result<T> {
7474
execute!(stdout(), EnterAlternateScreen)?;
7575
clear()?;
7676
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
7779
execute!(stdout(), LeaveAlternateScreen)?;
7880
ret
7981
}

0 commit comments

Comments
 (0)