When terraform is run by CI, or piped to less, or otherwise run in a non-tty environment, terminal codes should be disabled for more readable output.
@mcandre you can use -no-color argument. We found it very useful for our pipelines.
This should be fixed.
A simple if (isatty(STDOUT_FILENO)) nocolorarg=1;
or the equivalent for the language is all that is needed.
Some Terraform commands are missing support for -no-color, e.g. terraform providers.
terraform state show doesn't support -no-color either.
Would be great to be able to set TF_NO_COLOR=1 in the environment to disable all colorization completely, or something equally simple.

Really need to add no-color to every command?
And keep answering confused people you need to add the no-color parameter?
terraform, are you serious?
Most helpful comment
terraform state showdoesn't support-no-coloreither.Would be great to be able to set
TF_NO_COLOR=1in the environment to disable all colorization completely, or something equally simple.