litmus_paper
litmus_paper copied to clipboard
Allow disabling color output for terminal status (GET "/") with query param
Since color codes can mess with tools like awk
, a query parameter to disable the colorizing should be added to the API for the root resource. Something like curl http://mylitmushost/?color=false
should result in no colorization. This will eliminate the need to strip color sequences out with something like sed
.