如何从 Windows 上的 SBT 获取颜色编码的控制台输出? [英] How do I get color coded console output from SBT on Windows?

查看:32
本文介绍了如何从 Windows 上的 SBT 获取颜色编码的控制台输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SBT(简单构建工具)在 Windows 上构建我的 Scala 项目.我看到我的一个运行 OSX 的朋友在运行 SBT 时在他的终端窗口中获​​得颜色编码的输出,但我的到处都是相同的颜色.有没有办法为 Windows 启用此功能?

解决方案

对于 DOS shell,请查看 ansicon

<前>ansicon -i

(如果上述链接效果不佳,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

   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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆