summaryrefslogtreecommitdiff
path: root/src/repl
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2017-02-08 16:05:03 +0100
committerAntoine Gourlay <antoine@gourlay.fr>2017-02-21 15:39:26 +0100
commit6411170ede09ace8e5f1f018dcf5661846ed7d27 (patch)
tree986f4f46a7e4de16850c654f19cc39721d9a7717 /src/repl
parent76bfb9e0e5f38ce264f2a03490731f5865fa468f (diff)
downloadscala-6411170ede09ace8e5f1f018dcf5661846ed7d27.tar.gz
scala-6411170ede09ace8e5f1f018dcf5661846ed7d27.tar.bz2
scala-6411170ede09ace8e5f1f018dcf5661846ed7d27.zip
SD-256 enable colored output by default on unix
`scala.color` now has 3 states: `true`, `false` and `auto` (the default). `auto` allows colors if not on windows and if the shell is interactive (as in, both stdin and stdout are a tty). The autodetect works as expected when run via SBT too, and it can always be overriden on the CLI or via JAVA_OPTS.
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/scala/tools/nsc/interpreter/ReplProps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/ReplProps.scala b/src/repl/scala/tools/nsc/interpreter/ReplProps.scala
index f3115d9800..a86069f198 100644
--- a/src/repl/scala/tools/nsc/interpreter/ReplProps.scala
+++ b/src/repl/scala/tools/nsc/interpreter/ReplProps.scala
@@ -17,7 +17,7 @@ class ReplProps {
private def int(name: String) = Prop[Int](name)
// This property is used in TypeDebugging. Let's recycle it.
- val colorOk = bool("scala.color")
+ val colorOk = Properties.coloredOutputEnabled
val info = bool("scala.repl.info")
val debug = bool("scala.repl.debug")