aboutsummaryrefslogtreecommitdiffstats
path: root/console/console.go
diff options
context:
space:
mode:
Diffstat (limited to 'console/console.go')
-rw-r--r--console/console.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/console/console.go b/console/console.go
index 9cff8c876..00d1fea1d 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{