From 608a87e203860fca412892b6f0c2110d11b1d19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Fri, 29 Jun 2018 23:53:23 +0200 Subject: [PATCH] Fixed newlines in slowed down screenshot --- utils/ansi-screenshots/to_ansi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ansi-screenshots/to_ansi.sh b/utils/ansi-screenshots/to_ansi.sh index 93af03b..9baceaf 100755 --- a/utils/ansi-screenshots/to_ansi.sh +++ b/utils/ansi-screenshots/to_ansi.sh @@ -40,4 +40,4 @@ paste "$odd_lines_px" "$even_lines_px" \ | tr '\t\n' ' ' \ | fold -w $((width*6)) \ | sed -r -e 's/([01])([0-7]) ([01])([0-7]) /[\1;3\2;4\4m▀/g' -e 's/$//' \ - | if test "$CI" = "true" -a "$TRAVIS" = "true"; then while IFS='' read -n 11 ab; do if test -z "$ab"; then echo; else echo -n "${ab}"; fi; sleep 0.01; done; else cat; echo; fi + | if test "$CI" = "true" -a "$TRAVIS" = "true"; then while IFS=$'\n' read -n 11 ab; do if test "${#ab}" -ne 11; then echo "$ab"; else echo -n "$ab"; fi; sleep 0.01; done; else cat; echo; fi