summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Nguyen <benjamin.van.nguyen@gmail.com>2023-07-01 10:02:47 +0700
committerBenjamin Nguyen <benjamin.van.nguyen@gmail.com>2023-07-01 10:02:47 +0700
commit59e91262b1aad87a62027dac47c9a9cf34dfe1ff (patch)
tree11c6db1194fa4f3a64d497813427d47923b47500
parent25330d7c449917a78fcee07a364f9d0aa26794cb (diff)
expect
-rw-r--r--src/tty/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty/mod.rs b/src/tty/mod.rs
index 2dbe35b..b11da25 100644
--- a/src/tty/mod.rs
+++ b/src/tty/mod.rs
@@ -21,7 +21,7 @@ pub fn stdout_is_tty() -> bool {
/// Restore terminal settings.
pub fn restore_tty() {
- stdout().execute(cursor::Show).unwrap();
+ stdout().execute(cursor::Show).expect("Failed to restore cursor");
}
/// Attempts to get the current size of the tty's window. Returns `None` if stdout isn't tty or if