From a02a58dcfaa7888be55143956388444e0c518ba3 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Mon, 2 Sep 2019 11:23:05 -0700 Subject: [PATCH] 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. --- main/src/main/scala/sbt/internal/SysProp.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/scala/sbt/internal/SysProp.scala b/main/src/main/scala/sbt/internal/SysProp.scala index fa34b7822..73e504a4c 100644 --- a/main/src/main/scala/sbt/internal/SysProp.scala +++ b/main/src/main/scala/sbt/internal/SysProp.scala @@ -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)