Skip to content

Commit 796fddd

Browse files
committed
compilation errors gone.
1 parent 862b524 commit 796fddd

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
target/
22
swp
33
.swp
4+
*~
5+
.idea

build.sbt

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ version := "1.0"
77

88
scalaVersion := "2.10.3"
99

10+
exportJars := true
11+
1012
libraryDependencies ++= Seq (
1113
"org.scalatest" % "scalatest_2.10" % "1.9.1" % "test",
1214
"org.jboss.aesh" % "aesh" % "0.56",

src/main/scala/org/eprogramming/scalaesh/ScalaeshApp.scala

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import org.jboss.aesh.extensions.harlem.aesh._
1313
import org.jboss.aesh.extensions.pwd._
1414
import java.io._
1515

16+
import org.jboss.aesh.terminal.TestTerminal
17+
1618

1719
/**
1820
* simple aesh scala wrapper.
@@ -22,9 +24,12 @@ object ScalaeshApp extends App {
2224

2325
val pos = new PipedOutputStream();
2426
val pis = new PipedInputStream(pos);
27+
val baos = new ByteArrayOutputStream();
28+
2529
val sb = new SettingsBuilder()
26-
.inputStream(pis)
27-
.outputStream(new MtermPrintStream(textSpace, baos));
30+
.terminal(new TestTerminal())
31+
.inputStream(pis)
32+
.outputStream(new PrintStream(baos))
2833

2934
val registry = new AeshCommandRegistryBuilder()
3035
.command(new Harlem())

0 commit comments

Comments
 (0)