Scala-dev: enable `-Dscala.color` in shell scripts

Created on 31 Oct 2016  路  4Comments  路  Source: scala/scala-dev

We should enable color output in the shell scripts so that programmatic launching still gets the plain old version, but users by default get the nicer experience.

Most helpful comment

To enable it globally for sbt console you can create a ~/.sbt/0.13/colour.sbt with:

initialize ~= (_ => if (ConsoleLogger.formatEnabled) sys.props("scala.color") = "true")

All 4 comments

To enable it globally for sbt console you can create a ~/.sbt/0.13/colour.sbt with:

initialize ~= (_ => if (ConsoleLogger.formatEnabled) sys.props("scala.color") = "true")

Note that some environments still call the scripts that don't really want colorization, e.g. emacs, sublime.

PR: scala/scala#5663 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KieranPringle picture KieranPringle  路  7Comments

adriaanm picture adriaanm  路  6Comments

adriaanm picture adriaanm  路  5Comments

SethTisue picture SethTisue  路  4Comments

retronym picture retronym  路  5Comments