ANSI 转义字符在 Eclipse 控制台上的显示方式不正确

发布于 2024-10-09 17:28:52 字数 217 浏览 0 评论 0原文

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

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

出了什么问题?

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

what's wrong ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晒暮凉 2024-10-16 17:28:52

请参阅“尊重 ansi 颜色代码的 Eclipse 控制台视图的讨论”我按照@thegreendroid的建议并成功使用了ANSIConsole

See the discussion for "an eclipse console view that respects ansi color codes" I followed the suggestion of @thegreendroid and used ANSIConsole successfully.

中性美 2024-10-16 17:28:52

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

The Eclipse console does not support ANSI escape sequences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文