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:
Ethan Atkins 2020-09-17 08:48:41 -07:00
parent 70cf18d874
commit c291348d6a
1 changed files with 2 additions and 2 deletions

View File

@ -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)