Allow supershell in no color mode

Disabling supershell when color mode is disabled is a sensible default
(especially for piped output). However, I think it should still be
possible to use supershell in no color mode.

This requires a util change that also enables supershell in no color
mode.
This commit is contained in:
Ethan Atkins 2019-09-02 11:23:05 -07:00
parent 183b45897a
commit a02a58dcfa
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ object SysProp {
def fileCacheSize: Long =
SizeParser(System.getProperty("sbt.file.cache.size", "128M")).getOrElse(128L * 1024 * 1024)
def supershell: Boolean = color && getOrTrue("sbt.supershell")
def supershell: Boolean = booleanOpt("sbt.supershell").getOrElse(color)
def supershellSleep: Long = long("sbt.supershell.sleep", 100L)