'cmd not showing color output with ANSI escape colors

I wrote this piece of code to make a blue background:

System.out.print("\u001B[44m" + "   ");

it works fine in IntelliJ, but here's the output in cmd:

?[44m

I'm using the latest version of windows 10

what should I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source