fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

While closing AnsiPrintStream terminal reset should not be send to parent PrintStream directly #107

Closed slachiewicz closed 6 years ago

slachiewicz commented 6 years ago

Steps to reproduce (credits to Guillaume Boué/Maven Dev mailing list):

run mvn org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate -V At the end will be printed two ESC[0m

in org.fusesource.jansi.AnsiPrintStream#close there call to parent PrintStream, but should be changed to pass via org.fusesource.jansi.FilterPrintStream#filter to apply filters in org.fusesource.jansi.AnsiPrintStream#filter