fixed displaying wrong glyph at the start of input

This commit is contained in:
elena 2017-09-28 20:13:33 +03:00
parent 4b3f733b29
commit 846c8b6280

View file

@ -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)}'