summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-07 17:43:41 +0000
committerPaul Phillips <paulp@improving.org>2011-04-07 17:43:41 +0000
commitcaee04079fb8ed40a1458cf24649fad9d80a85c1 (patch)
treebc8fa7a77760582d91f135dcf72ff15a89ea4984 /src/compiler/scala/tools/nsc/interpreter/ILoop.scala
parent42dbce32957e048173c1749697d6bf9273581030 (diff)
downloadscala-caee04079fb8ed40a1458cf24649fad9d80a85c1.tar.gz
scala-caee04079fb8ed40a1458cf24649fad9d80a85c1.tar.bz2
scala-caee04079fb8ed40a1458cf24649fad9d80a85c1.zip
Made power mode more configurable.
long-term configuration answer, but what I have any chance of doing before 2.9 ships. // file to interpret when entering power mode instead of default -Dscala.repl.power.initcode=/path/to/file // file holding banner to display instead of default -Dscala.repl.power.banner=/path/to/file No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interpreter/ILoop.scala')
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/ILoop.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
index 511581b5af..830fad5332 100644
--- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
@@ -52,7 +52,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter)
// TODO
// object opt extends AestheticSettings
-
+ //
@deprecated("Use `intp` instead.")
def interpreter = intp
@@ -532,11 +532,11 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter)
}
def powerCmd(): Result = {
- if (isReplPower) return "Already in power mode."
+ if (isReplPower) "Already in power mode."
else enablePowerMode()
}
def enablePowerMode() = {
- isReplPower = true
+ replProps.power setValue true
power.unleash()
out.println(power.banner)
}