gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

color==false #79

Open ainthek opened 8 years ago

ainthek commented 8 years ago

With this option text is 'white', but still contains ascii color seqences. This causes troubles when piping to other command on MINGW.

$ echo "lang" | grasp -e "lang" --color=false | html-encode #just to see chars 1:�[1mlang�[22m

marcus@MARCUSHPNTB /c/dev/sts-workspace/git-qa (master) $ echo "lang" | grasp -e "lang" --color=false | decolorize | html-encode #decolorize is custom script to fix color issues on mingw 1:lang