ANSI escape characters does not appear the way they should on Eclipse console

时光毁灭记忆、已成空白 提交于 2021-02-04 21:41:52

问题


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 ?


回答1:


The Eclipse console does not support ANSI escape sequences.




回答2:


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



来源:https://stackoverflow.com/questions/4544583/ansi-escape-characters-does-not-appear-the-way-they-should-on-eclipse-console

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!