You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2013/06/24 16:54:45 UTC
svn commit: r1496072 -
/clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/Shell.scala
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)) {