File tree 3 files changed +11
-2
lines changed
src/main/scala/org/eprogramming/scalaesh
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
target /
2
2
swp
3
3
.swp
4
+ * ~
5
+ .idea
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ version := "1.0"
7
7
8
8
scalaVersion := " 2.10.3"
9
9
10
+ exportJars := true
11
+
10
12
libraryDependencies ++= Seq (
11
13
" org.scalatest" % " scalatest_2.10" % " 1.9.1" % " test" ,
12
14
" org.jboss.aesh" % " aesh" % " 0.56" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import org.jboss.aesh.extensions.harlem.aesh._
13
13
import org .jboss .aesh .extensions .pwd ._
14
14
import java .io ._
15
15
16
+ import org .jboss .aesh .terminal .TestTerminal
17
+
16
18
17
19
/**
18
20
* simple aesh scala wrapper.
@@ -22,9 +24,12 @@ object ScalaeshApp extends App {
22
24
23
25
val pos = new PipedOutputStream ();
24
26
val pis = new PipedInputStream (pos);
27
+ val baos = new ByteArrayOutputStream ();
28
+
25
29
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))
28
33
29
34
val registry = new AeshCommandRegistryBuilder ()
30
35
.command(new Harlem ())
You can’t perform that action at this time.
0 commit comments