mirror of https://github.com/sbt/sbt.git
In the unsupported terminal mode, JLine treats a broken stdin as an endless stream of empty lines. This is problematic for idea-sbt-plugin: if the IntelliJ process is forcibly killed and leaves the child SBT process running, it consumes considerable CPU processing these. Patching JLine itself would be the cleanest solution (the change has already been applied to JLine 2), but I've shied away from that and instead wrapped the InputStream that is read by JLine to intercept the result of -1 from read(). When this happens, the flat `inputEof` is set to true. |
||
|---|---|---|
| .. | ||
| src/test/scala | ||
| Completions.scala | ||
| EditDistance.scala | ||
| History.scala | ||
| HistoryCommands.scala | ||
| JLineCompletion.scala | ||
| LineReader.scala | ||
| NOTICE | ||
| Parser.scala | ||
| Parsers.scala | ||
| ProcessError.scala | ||
| TokenCompletions.scala | ||
| TypeString.scala | ||
| UpperBound.scala | ||