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
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
shlide
→
shlide
@@ -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 ;; *)