Allow ANSI output to be configured by properties

Add AnsiOutputApplicationListener which configures AnsiOutput.enabled
based on a `spring.output.ansi.enabled` property.

Fixes gh-1243
This commit is contained in:
Raphael von der Grün
2014-07-20 00:43:38 +02:00
committed by Phillip Webb
parent 45c8eca4f2
commit a35a79e1a3
6 changed files with 169 additions and 3 deletions

View File

@@ -711,7 +711,10 @@ messages to the console you can start your application with a `--debug` flag.
$ java -jar myapp.jar --debug
----
If your terminal supports ANSI, color output will be used to aid readability.
If your terminal supports ANSI, color output will be used to aid readability. You can set
`spring.output.ansi.enabled` to a
{dc-spring-boot}/ansi/AnsiOutput.Enabled.{dc-ext}[supported value] to override the auto
detection.