Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose testkit as a standalone package
- Loading branch information
1 parent
13a4d43
commit 200dd26
Showing
11 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
console4s-core/src/main/scala/com/gaborpihaj/console4s/core/Terminal.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.gaborpihaj.console4s.core | ||
|
||
trait Terminal { | ||
def writer(): Terminal.Writer | ||
def reader(): Terminal.Reader | ||
def flush(): Unit | ||
def getCursorPosition(): (Terminal.Row, Terminal.Column) | ||
def getHeight(): Int | ||
} | ||
|
||
object Terminal { | ||
type Row = Int | ||
type Column = Int | ||
trait Writer { | ||
def write(s: String): Unit | ||
} | ||
|
||
trait Reader { | ||
def readchar(): Int | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...m/gaborpihaj/console4s/TestTerminal.scala → ...m/gaborpihaj/console4s/TestTerminal.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 5 additions & 17 deletions
22
console4s/src/main/scala/com/gaborpihaj/console4s/Terminal.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
console4s/src/main/scala/com/gaborpihaj/console4s/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.gaborpihaj | ||
|
||
import com.gaborpihaj.console4s.core | ||
|
||
package object console4s { | ||
type Terminal = core.Terminal | ||
} |
4 changes: 2 additions & 2 deletions
4
...la/com/gaborpihaj/console4s/package.scala → ...la/com/gaborpihaj/console4s/Helpers.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.3.7 | ||
sbt.version=1.3.13 |