summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-16 19:40:59 +0000
committerPaul Phillips <paulp@improving.org>2011-06-16 19:40:59 +0000
commitd8f3a17f5dd9dd6864b4c6e2ed8db5909e9de2c0 (patch)
tree1ef46eb5c62f8803680042713802974e4ab02cdf /src/compiler
parent916d5f2de0ddbae60b2a1ae18bb3ab0d96f84897 (diff)
downloadscala-d8f3a17f5dd9dd6864b4c6e2ed8db5909e9de2c0.tar.gz
scala-d8f3a17f5dd9dd6864b4c6e2ed8db5909e9de2c0.tar.bz2
scala-d8f3a17f5dd9dd6864b4c6e2ed8db5909e9de2c0.zip
Go back to printing the message that transcript...
Go back to printing the message that transcript pastes can be finished with ctrl-D. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/ILoop.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
index 7f1066ec97..b249d37006 100644
--- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
@@ -670,11 +670,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
}
def transcript(start: String) = {
- // Printing this message doesn't work very well because it's buried in the
- // transcript they just pasted. Todo: a short timer goes off when
- // lines stop coming which tells them to hit ctrl-D.
- //
- // echo("// Detected repl transcript paste: ctrl-D to finish.")
+ echo("\n// Detected repl transcript paste: ctrl-D to finish.\n")
apply(Iterator(start) ++ readWhile(_.trim != PromptString.trim))
}
}