mirror of https://github.com/sbt/sbt.git
I noticed that when using the scala 2.12 console with the thin client that there was weird behavior for the first few seconds of the session. When prompted with 'scala> ' I would type a letter, say v, and the output would be 'scala>v' instead of 'scala> v'. It turned out that this was because the NetworkChannel was returning a stale value for isEchoEnabled. This happened because NetworkChannel has a method getProperties that is rate limited under the assumption that the properties rarely change. This made sense for things like isAnsiSupported or isSuperShellEnabled but not isEchoEnabled. It is straightforward to fix this by actually getting the terminal attributes and checking if the echo flag is set. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||