ANSI Colors from environment spilling into gradle debug

I have a whole bunch of ANSI escape sequences defined as environment variables. If you used oh-my-zsh or something similar, it’s quite likely you would too.

When I run a build with --debug, it prints all the environment variables, and then I can’t read anything on my screen. It would be nice if gradle could perform a reset of the foreground and background colors after printing the environment.

I saw a similar discussion from Dec’13 in the Old Forum, but didn’t see any resolution to it. Here’s hoping to get that fixed.