mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Don't enter raw mode preemptively
The user input is not echoed in sbt new because we were switching to raw mode when creating the console terminal. I can't quite remember why I was entering raw mode preemptively but it doesn't seem like the best idea.
This commit is contained in:
@@ -786,7 +786,6 @@ object Terminal {
|
|||||||
private[util] val system: org.jline.terminal.Terminal,
|
private[util] val system: org.jline.terminal.Terminal,
|
||||||
) extends TerminalImpl(in, out, originalErr, "console0") {
|
) extends TerminalImpl(in, out, originalErr, "console0") {
|
||||||
private[this] val rawMode = new AtomicBoolean(false)
|
private[this] val rawMode = new AtomicBoolean(false)
|
||||||
if (hasConsole) enterRawMode()
|
|
||||||
override private[sbt] def getSizeImpl: (Int, Int) = {
|
override private[sbt] def getSizeImpl: (Int, Int) = {
|
||||||
val size = system.getSize
|
val size = system.getSize
|
||||||
(size.getColumns, size.getRows)
|
(size.getColumns, size.getRows)
|
||||||
|
|||||||
Reference in New Issue
Block a user