mirror of
https://github.com/sbt/sbt.git
synced 2026-08-30 01:40:29 +02:00
A thread blocking on System.in.read() cannot be interrupted, so check System.in.available before blocking. This is how it used to work. It requires https://github.com/sbt/io/pull/149 or else a cpu will be pegged by the EventMonitor user input thread spinning on System.in.available.