Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console: fix windows console colors #2669

Merged
merged 1 commit into from
Jun 8, 2016

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jun 8, 2016

The github.com/fatih/color we use to colorize the console output added Windows support in a weird way, colorizing for Linux and then converting the colors on the fly to Windows before writing it to stdout. However since the console PR rewrote stdin/stdout handling, the color package never got around to actually transform it's Linux colors to Windows, breaking for Windows users. This PR essentially does this missing step of wrapping the output stream with a linux->windows color converter manually by the console.

Fixes #2668.

@robotally
Copy link

robotally commented Jun 8, 2016

Vote Count Reviewers
👍 0
👎 0

Updated: Wed Jun 8 10:51:39 UTC 2016

@codecov-io
Copy link

Current coverage is 56.97%

Merging #2669 into develop will increase coverage by 0.02%

@@            develop      #2669   diff @@
==========================================
  Files           216        216          
  Lines         24642      24642          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          14035      14041     +6   
+ Misses        10605      10601     -4   
+ Partials          2          0     -2   

Powered by Codecov. Last updated by fdd61b8...f364dbc

@karalabe karalabe force-pushed the fix-windows-console-color branch from f364dbc to d251d48 Compare June 8, 2016 10:12
@karalabe karalabe added this to the 1.4.7 maybe milestone Jun 8, 2016
@fjl
Copy link
Contributor

fjl commented Jun 8, 2016

👍

@bas-vk
Copy link
Member

bas-vk commented Jun 8, 2016

👍

@karalabe karalabe merged commit 553f08b into ethereum:develop Jun 8, 2016
@obscuren obscuren removed the review label Jun 8, 2016
@karalabe karalabe mentioned this pull request Jun 15, 2016
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants