mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 08:45:56 +02:00
The ask user thread is a background thread so it's fine for it to block on System.in. By blocking rather than polling, the cpu utilization of sbt drops to 0 on idle. We have to explicitly handle <ctrl+d> if we block though because the JLine console reader will return null both if the input stream returns -1