From d251d48439bf85d0fb0b52dd931e5ec6aea8b412 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Wed, 8 Jun 2016 13:12:15 +0300 Subject: console: fix windows color transformation issue --- console/console.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console/console.go b/console/console.go index baa9cf545..ab0c1ea58 100644 --- a/console/console.go +++ b/console/console.go @@ -30,6 +30,7 @@ import ( "github.com/ethereum/go-ethereum/internal/jsre" "github.com/ethereum/go-ethereum/internal/web3ext" "github.com/ethereum/go-ethereum/rpc" + "github.com/mattn/go-colorable" "github.com/peterh/liner" "github.com/robertkrimen/otto" ) @@ -80,7 +81,7 @@ func New(config Config) (*Console, error) { config.Prompt = DefaultPrompt } if config.Printer == nil { - config.Printer = os.Stdout + config.Printer = colorable.NewColorableStdout() } // Initialize the console and return console := &Console{ -- cgit