mirror of https://github.com/sbt/sbt.git
Fix for text echo issue when running sbt.
This commit is contained in:
parent
34945af631
commit
b6a3ca1937
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue