mirror of https://github.com/sbt/sbt.git
Use proxyInputStream instead of wrappedSystemIn
I'm not sure why the scala.Console.withIn was using proxyInputStream while the other input streams were set to wrapedSystemIn. At any rate, using the wrappedSystemIn would likely prevent reading input from working with the thin client.
This commit is contained in:
parent
70cf18d874
commit
c291348d6a
|
|
@ -518,8 +518,8 @@ object Terminal {
|
|||
}
|
||||
private[this] def withIn[T](f: => T): T =
|
||||
try {
|
||||
inputStream.set(Terminal.wrappedSystemIn)
|
||||
System.setIn(wrappedSystemIn)
|
||||
inputStream.set(proxyInputStream)
|
||||
System.setIn(proxyInputStream)
|
||||
scala.Console.withIn(proxyInputStream)(f)
|
||||
} finally System.setIn(originalIn)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue