clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1496072 - /clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala
Date Mon, 24 Jun 2013 14:54:45 GMT
Author: reto
Date: Mon Jun 24 14:54:44 2013
New Revision: 1496072

URL: http://svn.apache.org/r1496072
Log:
CLEREZZA-790: using ShellFactory instead of defaulting too unix shell

Modified:
    clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala

Modified: clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala
URL: http://svn.apache.org/viewvc/clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala?rev=1496072&r1=1496071&r2=1496072&view=diff
==============================================================================
--- clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala (original)
+++ clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala Mon Jun 24 14:54:44
2013
@@ -64,6 +64,7 @@ import scala.tools.jline.console.complet
 import scala.tools.jline.console.ConsoleReader
 import scala.tools.jline.console.completer.CandidateListCompletionHandler
 import java.lang.CharSequence
+import scala.tools.jline.TerminalFactory
 import scala.tools.jline.UnixTerminal
 import scala.tools.jline.console.history.History
 
@@ -78,7 +79,7 @@ class Shell(factory: InterpreterFactory,
 
   val terminal = terminalOption match {
     case Some(x) => x
-    case None => new UnixTerminal
+    case None => TerminalFactory.create
   }
 
   val interpreterLoop = new ILoop(new BufferedReader(new InputStreamReader(inStream)), new
PrintWriter(outStream, true)) {



Mime
View raw message