I wrote a program which prints a string, which contains ANSI escape sequences to make the text colored. But it doesn\'t work as expected in the default Windows 10 console, a
Thanks to user mklement0 for making me aware that VT support is not enabled automatically. This made me look in the right direction and I found this helpful post.
So to answer my question: Add or set the registry key