sbt/internal
Eugene Yokota 8628f95e66 lazily initialize ProxyTerminal to SimpleTerminal
Problem
-------
Console.systemOut is hooked up to Terminal.get, which internally calls
ProxyTerminal, which lets us deffer the wiring of terminal to
activeTerminal. This mechanism allows us to swap out the terminal
capable of standard out forwarding for sbtn.
However, as it stands this breaks the contract of being able to use
Console.systemOut with wrapped inside of `Terminal.withStreams() {...}`.

Solution
--------
Check if `activeTerminal.get` returns `null`, and if so initialize it to
the conventional `Terminal.SimpleTerminal`, which behaves as expected.
2021-06-20 17:32:42 -04:00
..
util-collection Scala 2.12.13 2021-01-31 12:59:31 -05:00
util-complete Avoid the whitespace after completion 2021-01-15 16:43:19 -05:00
util-control Kill external processes on sigint 2020-08-23 10:15:07 -07:00
util-interface/src/main/java/xsbti Apply javafmt in sbt project 2020-01-14 14:38:08 -08:00
util-logging lazily initialize ProxyTerminal to SimpleTerminal 2021-06-20 17:32:42 -04:00
util-logic/src Use nowarn annotation 2021-02-06 22:31:47 -05:00
util-position/src Add util headers 2019-12-08 10:29:22 -08:00
util-relation/src Add util headers 2019-12-08 10:29:22 -08:00
util-scripted/src/main Add internal multi logger implementation 2020-08-09 11:20:34 -07:00