ANSI 转义字符在 Eclipse 控制台上的显示方式与其应有的方式不同

2022-01-24 00:00:00 eclipse sbt ansi

我有一个 Scala 项目,我使用 Scala-Eclipse-Plugin 和 sbt.到现在为止还挺好.但问题是 sbt 将一些 ANSI 转义序列写入输出(我可能对此错了?).当我从 shell 调用 sbt 但在 eclipse 中,它们看起来像这样:

I have a Scala project and I use Scala-Eclipse-Plugin along with sbt. So far so good. But the problem is that sbt writes some ANSI escape sequences to the output (I might be wrong about this?).They appear pretty well when I invoke sbt from shell but inside eclipse, they appear like this:

[0m[[0minfo[0m] [34m[0m

怎么了?

推荐答案

Eclipse 控制台不支持 ANSI 转义序列.

The Eclipse console does not support ANSI escape sequences.

相关文章