Skip to content

Commit

Permalink
Improve turtle shell pattern stability under moving conditions (#69)
Browse files Browse the repository at this point in the history
* Improve turtle shell pattern stability under moving conditions
  • Loading branch information
lbergelson authored May 24, 2019
1 parent 47b5314 commit 48c7755
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cromshell
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ function _turtleSpinner()
local turtRFile=$( makeTemp )
turtle &> ${tmpTurtFile}
sed 's#^ ##g' ${tmpTurtFile} > ${turtFile}
rev ${turtFile} | sed -e 's$/$#$g' -e 's#\\#/#g' -e 's$#$\\$g' -e 's#(#)#g' -e 's#)#(#g' > ${turtRFile}
#Since we're switching pairs characters we need to do the switch in several steps
#ex: /\ -> TMP\ -> TMP/ -> \/
rev ${turtFile} | sed -e 's#/#TMP#g' -e 's#\\#/#g' -e 's#TMP#\\#g' \
-e 's#(#TMP#g' -e 's#)#(#g' -e 's#TMP#)#g' \
-e 's#>#TMP#g' -e 's#<#>#g' -e 's#TMP#<#g' > ${turtRFile}

# Set up some loop variables:
local i=3
Expand Down

0 comments on commit 48c7755

Please sign in to comment.