New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable `-Dscala.color` in shell scripts #256

Closed
adriaanm opened this Issue Oct 31, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@adriaanm
Member

adriaanm commented Oct 31, 2016

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.

@adriaanm adriaanm added this to the 2.12.1 milestone Oct 31, 2016

@dwijnand

This comment has been minimized.

Show comment
Hide comment
@dwijnand

dwijnand Nov 3, 2016

Member

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")
Member

dwijnand commented Nov 3, 2016

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")
@retronym

This comment has been minimized.

Show comment
Hide comment
@retronym

retronym Nov 11, 2016

Member

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

Member

retronym commented Nov 11, 2016

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

@retronym retronym modified the milestones: 2.12.1, 2.12.2 Dec 13, 2016

@gourlaysama

This comment has been minimized.

Show comment
Hide comment
@gourlaysama
Member

gourlaysama commented Jan 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment