From d8f3a17f5dd9dd6864b4c6e2ed8db5909e9de2c0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 16 Jun 2011 19:40:59 +0000 Subject: 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. --- src/compiler/scala/tools/nsc/interpreter/ILoop.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/compiler') 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)) } } -- cgit v1.2.3