mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 02:57:21 +02:00
I introduced the terminalShellPrompt so that we could generate a prompt that was colored only if the terminal supported color. Rather than expose the terminal implementation detail, we can just use a boolean flag that toggles whether or not color is enabled and sbt can pass in the value of terminal.isColorEnabled into the function.