Consensys/surya

Option to remove text output coloring

maurelian opened this issue · 5 comments

This would simplify copying and sharing output. Eslint uses --no-color for this.

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?

Yeah, super low pri.

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. 🎉