Git Product home page Git Product logo

Comments (7)

retronym avatar retronym commented on June 20, 2024

"I know that IDEA's own console supports ANSI colour sequences" I didn't know that. Looks like it isn't supported across the board, though:

http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880

I'll poke through the sources and see if I can find a way. Would be great to use this for SBT colorization rather that the current hack.

from idea-sbt-plugin.

sroebuck avatar sroebuck commented on June 20, 2024

Many thanks for looking into it. Hopefully work on the IntelliJ side
will make this easier to enable soon.

Stuart.

Jason Zaugg wrote:

"I know that IDEA's own console supports ANSI colour sequences" I
didn't know that. Looks like it isn't supported across the board, though:

http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880

I'll poke through the sources and see if I can find a way. Would be
great to use this for SBT colorization rather that the current hack.


Reply to this email directly or view it on GitHub:
#51 (comment)

Jason Zaugg
mailto:[email protected]
15 November 2011 3:47pm
"I know that IDEA's own console supports ANSI colour sequences" I
didn't know that. Looks like it isn't supported across the board, though:

http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880

I'll poke through the sources and see if I can find a way. Would be
great to use this for SBT colorization rather that the current hack.


Reply to this email directly or view it on GitHub:
#51 (comment)

from idea-sbt-plugin.

CaringDev avatar CaringDev commented on June 20, 2024

This would also be nice for scalatest output

from idea-sbt-plugin.

krasa avatar krasa commented on June 20, 2024

Is it still relevant since it is supported by Grep Console plugin?

from idea-sbt-plugin.

michalrus avatar michalrus commented on June 20, 2024

@krasa SBT Console plugin seems to strip ANSI color codes, so your Grep Console cannot see them. =(

@retronym Maybe there could be an option somewhere in SBT Console's settings to turn this stripping off? =)

from idea-sbt-plugin.

retronym avatar retronym commented on June 20, 2024

The plugin sets -Dsbt.nologformat=true (or something like that) to instruct SBT not to colorize the output.

from idea-sbt-plugin.

michalrus avatar michalrus commented on June 20, 2024

@retronym setting this to false in https://github.com/orfjackal/idea-sbt-plugin/blob/756a2ed6b70024f6ab71aed7310f973d17f825b8/sbt-plugin/src/main/java/net/orfjackal/sbt/runner/SbtRunner.java#L55 (or removing this line altogether) doesn't make the plugin output ANSI codes for me. I've tried changing jline.terminal to jline.UnixTerminal, with no success either.

SBT documentation, http://www.scala-sbt.org/release/docs/faq.html#how-do-i-disable-ansi-codes-in-the-output, says:

Sometimes sbt doesn't detect that ansi codes aren't supported and you get output that looks like:

So it seems SBT is doing some checks on its own and may decide to not output ANSI color codes even if -Dsbt.log.noformat=true. =(

from idea-sbt-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.