Colors in output field

Hi!

I have used a code with the logging library to get colors on the logging messages in the terminal (cmd) and it works with python 2. I would like to use this in my python scripts in VC as well, for debugging purposes. But my code does not give any color to the messages when I run the script in VC. Have anyone tried this before?

This is my code for colored output:

This is the output in CMD:

This is the output when running the code in VC:

Thank you!

The output window is not a terminal and only displays plain text without any formatting.