windows - 如何从 Windows 上的 SBT 获得彩色编码的控制台输出?

标签 windows scala sbt

我正在使用 SBT(简单构建工具)在 Windows 上构建我的 Scala 项目。我已经看到我的一个运行 OSX 的 friend 在运行 SBT 时在他的终端窗口中获​​得了颜色编码的输出,但我的到处都是相同的颜色。有什么方法可以为 Windows 启用此功能吗?

最佳答案

对于 DOS shell,查看 ansicon

   ansicon -i

(如果以上链接不能正常工作,aeracodethe comments this address 中提到)

alt text

(这张图片不是来自 sbt session ,而是说明 DOS session 中的颜色)

关于windows - 如何从 Windows 上的 SBT 获得彩色编码的控制台输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3629918/

相关文章:

C++ Win API 函数 'not declared in this scope'

scala - 如何在单元测试中抑制 Spark 日志记录?

scala - 在 sbt 中添加仅编译时的子项目依赖项

scala - 如何在 Scala 项目中将 Play 框架作为依赖项导入

scala - 在控制台repl中使用scalaz,而无需创建项目

python - 错误 : Could not build wheels for Kivy which use PEP 517 and cannot be installed directly

c# - 在没有事件源注册的情况下写入 Windows 应用程序事件日志

来自 Linux 的 Python pysftp get_r 在 Linux 上运行良好但在 Windows 上运行不正常

Scala:将逆变类型作为隐式参数传递不会选择最近的父类(super class)型?

scala - Spark 卡拉: Performance degrade with simple UDF over large number of columns