Hi!

When we run `go test` (without package param) it doesn't redirect
os.Stdout, so it's possible to detect is it a TTY and enable color output:
    unix.IoctlGetTermios(int(os.Stdout.Fd()), ioctlReadTermios)

But when we run `go test .` (with package param) it does redirect
os.Stdout, so it's became impossible to detect is it a TTY.

Is there any other way to auto-detect is os.Stdout support colors in this
use case? Or should I just introduce env var like $GOTEST_COLOR=1 instead?

-- 
                        WBR, Alex.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to