all repos — shlide @ dd38d65edd7823dd0f91ee8518597ab4c5b8e843

slide deck presentation tool written in pure bash

Fix getting screensize on OpenBSD

OpenBSD doesn't have 'stty -F'; an alternative is to use bash's native
'checkwinsize' shell option to populate $LINES and $COLUMNS.

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Thu, 18 Jun 2020 08:56:49 +0530
commit

dd38d65edd7823dd0f91ee8518597ab4c5b8e843

parent

a8db45dd0561a7f44d5e0f5b5264b0b1a40c1a1b

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

jump to
M shlideshlide

@@ -77,6 +77,7 @@

# Get screen size. case "$OSTYPE" in "darwin"*) read -r LINES COLUMNS < <(stty -f /dev/tty size) ;; + "openbsd"*) shopt -s checkwinsize; (:;:) ;; *) read -r LINES COLUMNS < <(stty -F /dev/tty size) ;; esac