How to close console color code?

i am use the version 2.479.2, the Console Output a lot of color code,and some code has affected the correct results,like the mvn result.

the variables that allowed me to obtain the version were also affected.
so,how to close the color code or make it not effect shell result?