sbt/main-actions/src/main/scala/sbt
Ethan Atkins 78620cd902 Manage ansi codes and color codes separately
The ConsoleAppender formatEnabledInEnv field was being used both as an
indicator that ansi codes were supported and that color codes are
enabled. There are cases in which general ansi codes are not supported
but color codes are and these use cases need to be handled separately.
To make things more explicit, this commit adds isColorEnabled and
isAnsiSupported to the Terminal companion object so that we can be more
specific about what the requirements are (general ansi escape codes or
just colors). There are a few cases in ConsoleAppender itself where
formatEnabledInEnv was used to set flags for both color and ansi codes.
When that is the case, we use Terminal.isAnsiSupported because when that
is true, colors should at least work but there are terminals that
support color but not general ansi escape codes.
2020-10-21 08:01:12 -07:00
..
compiler Make val loading order top-to-bottom 2020-02-22 04:45:34 -05:00
Console.scala Adjust to Zinc change 2020-08-15 13:20:46 -04:00
Doc.scala Update sbt for latest zinc apis 2020-07-22 15:00:56 -07:00
DotGraph.scala integrate with VirtualFile changes 2020-04-24 17:44:14 -04:00
ForkTests.scala Manage ansi codes and color codes separately 2020-10-21 08:01:12 -07:00
Package.scala Target 1.4.0 2019-12-24 10:11:09 +01:00
RawCompileLike.scala Build pipelining 2020-08-06 02:31:01 -04:00
Sync.scala apply formatting 2019-04-20 03:23:54 -04:00
TestResultLogger.scala fix typo 2019-06-06 08:05:16 +03:00
Tests.scala Update Tests.Group to be bin compat by manually implementing case class methods 2020-05-04 09:29:31 -04:00