问题
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