mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Fix for text echo issue when running sbt.
This commit is contained in:
@@ -119,8 +119,9 @@ private[sbt] object JLine {
|
|||||||
*/
|
*/
|
||||||
def usingTerminal[T](f: jline.Terminal => T): T =
|
def usingTerminal[T](f: jline.Terminal => T): T =
|
||||||
withTerminal { t =>
|
withTerminal { t =>
|
||||||
|
val result = f(t)
|
||||||
t.restore
|
t.restore
|
||||||
f(t)
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
def createReader(): ConsoleReader = createReader(None, JLine.makeInputStream(true))
|
def createReader(): ConsoleReader = createReader(None, JLine.makeInputStream(true))
|
||||||
|
|||||||
Reference in New Issue
Block a user