cmd不显示带有ANSI转义颜色的彩色输出。

huangapple 未分类评论51阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年4月4日 03:56:31
  • 转载请务必保留本文链接:https://java.coder-hub.com/61019501.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定