Add Terminal.withRawOutput api

In the scala console, it's essential that we not process the bytes that
are written to the terminal by jline.
This commit is contained in:
Ethan Atkins
2020-07-10 13:37:54 -07:00
parent bc4fe0a31a
commit 25e83d8fec
7 changed files with 25 additions and 14 deletions
@@ -885,7 +885,7 @@ class NetworkClient(
if (!stopped.get()) read()
}
}
try Terminal.console.withRawSystemIn(read())
try Terminal.console.withRawInput(read())
catch { case NonFatal(_) => stopped.set(true) }
}