Option to remove text output coloring
maurelian opened this issue · 5 comments
maurelian commented
This would simplify copying and sharing output. Eslint uses --no-color
for this.
chronaeon commented
This would be a useful option because the colored encoding messes up the appearance of the output when surya describe
is piped into plaintext using >
GNSPS commented
This doesn't seem urgent. Maybe set a milestone for after the refactoring of the codebase?
maurelian commented
Yeah, super low pri.
chronaeon commented
You can get rid of the coloring by piping Surya's output through sed
, like so:
surya describe somefiles.sol | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g"
GNSPS commented
This is addressed now with a --no-color
flag in the CLI, and a parameter in all the modules exported that use color. 🎉