mirror of https://github.com/sbt/sbt.git
Merge pull request #5908 from eatkins/scala-2.12-thin-client-console
Fix echo setting for scala 2.12 thin client console
This commit is contained in:
commit
34d1e62f27
|
|
@ -293,4 +293,7 @@ private[sbt] object JLine3 {
|
|||
}
|
||||
attributes
|
||||
}
|
||||
private[sbt] def isEchoEnabled(map: Map[String, String]): Boolean = {
|
||||
attributesFromMap(map).getLocalFlag(LocalFlag.ECHO)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -805,7 +805,7 @@ final class NetworkChannel(
|
|||
override def getWidth: Int = getProperty(_.width, 0).getOrElse(0)
|
||||
override def getHeight: Int = getProperty(_.height, 0).getOrElse(0)
|
||||
override def isAnsiSupported: Boolean = getProperty(_.isAnsiSupported, false).getOrElse(false)
|
||||
override def isEchoEnabled: Boolean = waitForPending(_.isEchoEnabled)
|
||||
override def isEchoEnabled: Boolean = sbt.internal.util.JLine3.isEchoEnabled(getAttributes)
|
||||
override def isSuccessEnabled: Boolean =
|
||||
interactive.get ||
|
||||
StandardMain.exchange.withState(ContinuousCommands.isInWatch(_, NetworkChannel.this))
|
||||
|
|
|
|||
Loading…
Reference in New Issue