all repos — shlide @ a8db45dd0561a7f44d5e0f5b5264b0b1a40c1a1b

slide deck presentation tool written in pure bash

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
commit

a8db45dd0561a7f44d5e0f5b5264b0b1a40c1a1b

parent

2e825ef674591358ee2e94173bbc545bb2d18a56

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M shlideshlide

@@ -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'