How to show color console output in Clion

I am trying to write a C ++ application with Clion that uses color console output using ASCII sequences. When I run the program in Clion, colors are not displayed. But when I run the program in my terminal, I see the colors.

Is there a hidden parameter that I must allow for this?

EDIT: I meant ANSI

+4
source share
1 answer

The CLION console is not a terminal (at least for now), but nothing prevents the interpretation of control codes related to color and highlights the text accordingly. This is exactly what happens when you run the CMake build, for example.

, . : https://youtrack.jetbrains.com/issue/CPP-2471

+3

Source: https://habr.com/ru/post/1608688/


All Articles