all repos — shlide @ 95a5f0f0accad14e5e5d216af6cabdcc0fc1a5e8

slide deck presentation tool written in pure bash

Clear screen on quit

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Mon, 03 Feb 2020 00:19:21 +0530
commit

95a5f0f0accad14e5e5d216af6cabdcc0fc1a5e8

parent

0cc2b403aca14370130a86cc9787cb0e57bfda03

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

jump to
M shlideshlide

@@ -24,7 +24,6 @@ max=0

local IFS= while read -r line; do l=$(ansi_filter $(colorify "$line")) - echo "$l" >> log.txt if [ "${#l}" -gt "$max" ]; then max="${#l}"; fi done < "$1" printf '%s\n' "$max"

@@ -94,6 +93,7 @@

} die() { + printf '\e[2J' printf '\e[?25h' exit 0 }

@@ -125,7 +125,6 @@ display_end

read -rsn1 input case "$input" in "j"|"n"|"q") - printf '\e[2J' die ;; *)