Fix for text echo issue when running sbt.

This commit is contained in:
kczulko 2017-09-11 11:49:10 +02:00
parent 34945af631
commit b6a3ca1937
1 changed files with 2 additions and 1 deletions

View File

@ -119,8 +119,9 @@ private[sbt] object JLine {
*/
def usingTerminal[T](f: jline.Terminal => T): T =
withTerminal { t =>
val result = f(t)
t.restore
f(t)
result
}
def createReader(): ConsoleReader = createReader(None, JLine.makeInputStream(true))