slide deck presentation tool written in pure bash

Fix stty in macOS (#8)

stty on macOS uses `-f` instead of `-F`

authored by Abin Simon and committed by GitHub a8db45dd 2e825ef6

Changed files
+4 -1
+4 -1
shlide
··· 75 75 printf '\e[2J' 76 76 77 77 # Get screen size. 78 - read -r LINES COLUMNS < <(stty -F /dev/tty size) 78 + case "$OSTYPE" in 79 + "darwin"*) read -r LINES COLUMNS < <(stty -f /dev/tty size) ;; 80 + *) read -r LINES COLUMNS < <(stty -F /dev/tty size) ;; 81 + esac 79 82 80 83 # Write slide number at bottom left. 81 84 printf '\e[H'