pdrakeweb / sof

Server on Fire

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flag to disable color

tnorris opened this issue · comments

I want to pipe sof output into JIRA, but I keep getting ansi escape codes from colors.

Right now my workaround is pipe the output to | perl -pe 's/\e\[?.*?[\@-~]//g' before piping it to comment, but it would be cool if I could set an environment variable, or if sof checked to see if STDOUT was a TTY before printing out color.

@tnorris I'm wondering if the better option is to file a feature request here: https://github.com/fazibear/colorize