如何从 Windows 上的 SBT 获取颜色编码的控制台输出? [英] How do I get color coded console output from SBT on Windows?
问题描述
我正在使用 SBT(简单构建工具)在 Windows 上构建我的 Scala 项目.我看到我的一个运行 OSX 的朋友在运行 SBT 时在他的终端窗口中获得颜色编码的输出,但我的到处都是相同的颜色.有没有办法为 Windows 启用此功能?
对于 DOS shell,请查看 ansicon
- 下载页面
- 在 DOS shell 中输入:
(如果上述链接效果不佳,aeracode 在评论 这个地址)
(这张图片不是来自 sbt 会话,而是说明了 DOS 会话中的颜色)
I'm using SBT (Simple Build Tool) to build my Scala projects on Windows. I've seen that one of my friends, that runs OSX, gets color coded output in his terminal windows when running SBT, but mine is just the same color everywhere. Is there any way to enable this for Windows?
For DOS shell, check out ansicon
- download page
- type in the DOS shell:
ansicon -i
(If the above links don't work too well, aeracode mentiones in the comments this address)
(this picture is not from a sbt session but illustrates colors within a DOS session)
这篇关于如何从 Windows 上的 SBT 获取颜色编码的控制台输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!