英文:
cmd not showing color output with ANSI escape colors
问题
我写了这段代码来设置蓝色背景:
System.out.print("\u001B[44m" + " ");
在IntelliJ中运行正常,但在命令提示符中的输出如下:
?[44m
我正在使用最新版本的Windows 10。
我应该怎么做?
英文:
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?
专注分享java语言的经验与见解,让所有开发者获益!
评论