Fix stty in macOS (#8) stty on macOS uses `-f` instead of `-F`
Abin Simon abinsimon10@gmail.com
Tue, 28 Apr 2020 16:48:16 +0530
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
shlide
→
shlide
@@ -75,7 +75,10 @@ # Clear the screen.
printf '\e[2J' # Get screen size. - read -r LINES COLUMNS < <(stty -F /dev/tty size) + case "$OSTYPE" in + "darwin"*) read -r LINES COLUMNS < <(stty -f /dev/tty size) ;; + *) read -r LINES COLUMNS < <(stty -F /dev/tty size) ;; + esac # Write slide number at bottom left. printf '\e[H'