zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

Strange characters #44

Closed gasatrya closed 11 years ago

gasatrya commented 11 years ago

My first try and I got this

{←[0;31;49mpre←[0m} AND {←[0;31;49mtable, td←[0m} share ←[0;31;49m5←[0m rules {←[0;31;49mfieldset←[0m} AND {←[0;31;49mpre←[0m} share ←[0;31;49m4←[0m rules {←[0;31;49m.wp-smiley←[0m} AND {←[0;31;49mlegend←[0m} share ←[0;31;49m3←[0m rule s {←[0;31;49m::-moz-selection←[0m} AND {←[0;31;49m::selection←[0m} share ←[0;31;49 m3←[0m rules {←[0;31;49mhr←[0m} AND {←[0;31;49mtable, td←[0m} share ←[0;31;49m3←[0m rules {←[0;31;49m.wp-caption-text:before←[0m} AND {←[0;31;49mh6, .zeta←[0m} share ←[0; 31;49m3←[0m rules {←[0;31;49mtable, td←[0m} AND {←[0;31;49mth←[0m} share ←[0;31;49m3←[0m rules {←[0;31;49mfieldset←[0m}, {←[0;31;49mlegend←[0m} AND {←[0;31;49mtextarea, select, input[type="email"], input[type="password"], input[type="search"], input[type="text"], input[type="url"], input[class="text"]←[0m} share ←[0;31;49m3←[0m rules {←[0;31;49m.wp-caption-text←[0m}, {←[0;31;49mfieldset←[0m}, {←[0;31;49mlabel←[0m } AND {←[0;31;49mtable←[0m} share ←[0;31;49m3←[0m rules {←[0;31;49minput[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, select:focus, button:focus, input[type="reset"]:focus, input[type="submit"]:focus, input[type="button"]:focus←[0m}, {←[0;31;49minput[type="file"]:focus, input[type ="file"]:active, input[type="radio"]:focus, input[type="radio"]:active, input[type="checkbox"]:focus, input[type="checkbox"]:active←[0m} AND {←[0;31;49mtextarea, select, input[type="email"], input[type="password"], input[type="search"], input[type="text"], input[type="url"], input[class="text"]←[0m} share ←[0;31;49m3←[0m rules

peterkeating commented 11 years ago

I also get output like this with the same version of Ruby. Think it might be an issue on Windows?

zmoazeni commented 11 years ago

Sorry. It is windows only. Run with the --no-color switch. I should detect the windows platform and change the default accordingly.

peterkeating commented 11 years ago

Yeps, running with the --no-color switch outputs results correctly :)

gasatrya commented 11 years ago

Yes, it working now.

What is the --no-color means?

peterkeating commented 11 years ago

--no-color disables the output from being colourized, which is true by default.

gasatrya commented 11 years ago

@peterkeating thanks for the asnwer.