Sometimes, when compiling some files, you see the following strange output characters.

e[1;33m

Something that looks like gibberish as shown above.

Problems and solutions

This is not a problem because you may be using the ANSI ESCAPE CODE output in your program.

The purpose is to display the colored output in the interrupt.

If your terminal does not support this display, it will display a similar garbled code as above.

For Jenkins, you’ll need to install the AnsiColor plugin.

The name of the plugin for AnsiColor, the plug-in project address, please refer to the link: https://plugins.jenkins.io/an… The contents of the.

We won’t talk about how to install it here, but you can do it by visiting Jenkins’ plugin screen and searching for the plugin name.

The figure above shows the plug-ins that have been successfully installed.

Configuration in Jenkins

Access the project you need to configure in Jenkins.

Then select the Color ANSI Console Output option in the Build Environment variable for the project.

Save and exit and recompile your project on Jenkins.

At this point you should see the color output on the console.

The color output shown above.

https://www.ossez.com/t/jenki…