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

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.