tombujok/grails-core — pull request #1 by tombujok (2013-12-07 15:33:16+00:00)
Title: GRAILS-10753 Console Colors in Windows

The GrailsConsole makes sure now that whenever the ANSI escape codes are output to the console they are followed by the reset sequence, so that the console is reset to its default statue after every operation. Like that it is not “stateful” when it comes to colouring, formatting, etc.
It also applies to the userInput operation, so that even if the prompt question is coloured the reset mark precedes the user’s input. It ensures that if the java-process is killed in-between, the console is reset to the default state.