From c3229aaef17ceb9098cda80018d70c87a29aaf65 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 17 Jul 2014 09:50:58 -0700 Subject: [PATCH] Always enable color on Windows since tty check doesn't work well --- commands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 7d19e3026..c57757f61 100644 --- a/commands.go +++ b/commands.go @@ -3,6 +3,7 @@ package main import ( "os" "os/signal" + "runtime" "code.google.com/p/go.crypto/ssh/terminal" "github.com/hashicorp/terraform/command" @@ -28,7 +29,8 @@ func init() { } meta := command.Meta{ - Color: terminal.IsTerminal(int(os.Stdout.Fd())), + Color: runtime.GOOS == "windows" || + terminal.IsTerminal(int(os.Stdout.Fd())), ContextOpts: &ContextOpts, Ui: Ui, }