Vahid Pazirandeh
Vahid Pazirandeh

Reputation: 1592

How do I change the grails.exe console colors in Windows?

I run Grails 2.3.6 in Windows from a normal command prompt: "grails run-app"

By default Grails likes to use different colors for various types of textual output. That's fine, but what I really don't like are the Groovy exceptions which are displayed in dark red. I use a black background which make them difficult to read.

Cygwin is nice in that when Grails runs I don't see any colors at all (even exceptions), but Cygwin has a different problem: the FileWatcher doesn't detect changes I make to Groovy source code, so "hot deployments" don't work.

Upvotes: 4

Views: 407

Answers (2)

Paweł Piecyk
Paweł Piecyk

Reputation: 2789

If you need to use Cygwin take a look at ConEmu. It's good replacement for default cygwin terminal and you can run cygwin environment here. It also supports themes (there are couple of them out of the box) so grails exceptions should look better.

Upvotes: 1

Phat H. VU
Phat H. VU

Reputation: 2370

You can disable ANSI colour codes by :

grails --plain-output run-app

enter image description here

Upvotes: 4

Related Questions