Skip to content

Commit

Permalink
[release/1.4.7] console: fix windows color transformation issue
Browse files Browse the repository at this point in the history
(cherry picked from commit d251d48)
  • Loading branch information
karalabe committed Jun 14, 2016
1 parent 71a89b7 commit 688fbab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 688fbab

Please sign in to comment.