From 9a4ebfb5cb9fde1fa4da8a959920cd53790077e5 Mon Sep 17 00:00:00 2001 From: elena Date: Thu, 28 Sep 2017 20:13:33 +0300 Subject: [PATCH] fixed displaying wrong glyph at the start of input Former-commit-id: 846c8b62807281c88c56ac7cd3d30de3b985f2ef Former-commit-id: c17c5d47c4bd0324ee6aea0d50ca5acf179b1166 Former-commit-id: fa52ff917d0d579c0ad594c4014987912ff7aa3c --- Scripts/scrolling_title.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/scrolling_title.sh b/Scripts/scrolling_title.sh index c5fd4b3..f657958 100755 --- a/Scripts/scrolling_title.sh +++ b/Scripts/scrolling_title.sh @@ -52,7 +52,7 @@ do LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)" FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")" - echo -n "  " + echo -n "  " # Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i)) #echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'