Skip to content

Commit 6c8f5a8

Browse files
add echo.Reset/echoReset to remove color on output
1 parent 2679297 commit 6c8f5a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generator.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ $startSym
133133
echo "\$$para"
134134
$endIf
135135
$endSym
136+
LOLCAT
137+
138+
#echo.Reset to remove color code on output
139+
fnName="$fn echo"$dot"Reset$brackets"
140+
cat << LOLCAT >> "$newDist"
141+
$fnName
142+
$startSym
143+
echo "\$$para" | tr -d '[:cntrl:]' | sed -E "s/\[((;)?[0-9]{1,3}){0,3}m//g"
144+
$endSym
136145
LOLCAT
137146

138147
done

0 commit comments

Comments
 (0)