aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basta.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/basta.sh b/basta.sh
index 1c8fe93..7ed53cf 100644
--- a/basta.sh
+++ b/basta.sh
@@ -70,8 +70,7 @@ basta.update_status()
basta.check_cursor()
{
- local saved_tty=$(stty -g)
- stty raw
+ stty raw -echo
if ! read -t 0; then
local exit=$?
@@ -83,7 +82,7 @@ basta.check_cursor()
fi
fi
- stty "$saved_tty"
+ stty sane
}
basta.do_exit_status()