sgentle / caniuse-cmd

Caniuse command line tool
MIT License
1.62k stars 51 forks source link

windows environment #4

Closed myqianlan closed 8 years ago

myqianlan commented 9 years ago

like this:

T_T ...T_T..

image

sgentle commented 9 years ago

Hm, sorry to hear that. I was under the impression that recent versions of Windows have decent Unicode support, but I don't have a Windows machine to test. If you can find a set of characters that will display on Windows I'd be happy to add them!

I could possibly add a flag to use ascii-only symbols (Y/N/P for yes/no/partial)...

MattiJarvinen commented 8 years ago

How mocha fixed this https://github.com/mochajs/mocha/pull/641

Actually default fonts for windows terminal don't have those characters.

Description on how mocha did this and how to add proper fonts for windows terminal http://stackoverflow.com/questions/9817926/how-can-i-get-mochas-unicode-output-to-display-properly-in-a-windows-console

AdrianoCahete commented 8 years ago

:+1:

sgentle commented 8 years ago

I've merged @blindlybright's changes which should mitigate this, but if anyone would like to build on that to add symbols that appear in the default windows terminal fonts (as per @MattiJarvinen-BA's link) I'd be happy to accept pull requests!

AdrianoCahete commented 8 years ago

@myqianlan Try again with the latest code, please.

myqianlan commented 8 years ago

@AdrianoCahete haha, I use mac already...

AdrianoCahete commented 8 years ago

Oh... This is horrible :P

So, i belive we can close this issue @sgentle :)

sgentle commented 8 years ago

Oh well, I'm sure there are plenty of other windows users who will benefit from your efforts @AdrianoCahete. :)

MattiJarvinen commented 8 years ago

Something fishy still with the partial support icon.

image

AdrianoCahete commented 8 years ago

@MattiJarvinen-BA Which Windows version? Any edit/personalization in cmd?