sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5.07k stars 102 forks source link

The bars doesn't show colors #177

Open hellishvictor opened 1 year ago

hellishvictor commented 1 year ago

Hi, why the bars doesn't show the colors? with pastel color red I get the following:

sshot-1

Tried pastel -m auto color red, but it returned:

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;2
40;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;18
1m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;
181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;2
40;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2
;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;
181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m  Name: red

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m  Hex: #ff0000

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m  RGB: rgb(255, 0, 0)

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m  HSL: hsl(0, 100.0%, 50.0%)

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m  Most similar:

  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;255;0;0;4
8;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48
;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;
2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2
;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;255;0;0;48;2;255;0;0m▀←[0m←[38;2;240;240;240;4
8;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m   ←[38;2;255;69;0;48;2;255;69;0m▀←[0m
←[38;2;255;69;0;48;2;255;69;0m▀←[0m←[38;2;255;69;0;48;2;255;69;0m▀←[0m←[38;2;255;69;0;48;2;255;69;0m
▀←[0m←[38;2;255;69;0;48;2;255;69;0m▀←[0m orangered
  ←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;2
40;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;18
1m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;
181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;2
40;240m▀←[0m←[38;2;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2
;240;240;240;48;2;181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m←[38;2;240;240;240;48;2;
181;181;181m▀←[0m←[38;2;181;181;181;48;2;240;240;240m▀←[0m   ←[38;2;255;99;71;48;2;255;99;71m▀←[0m←[
38;2;255;99;71;48;2;255;99;71m▀←[0m←[38;2;255;99;71;48;2;255;99;71m▀←[0m←[38;2;255;99;71;48;2;255;99
;71m▀←[0m←[38;2;255;99;71;48;2;255;99;71m▀←[0m tomato

I can live without that, but it would be better if the bars were displayed with the colors. I'm on Win7 x64 btw. Cheers.

sharkdp commented 1 year ago

You can try a different color mode (see pastel --help => --color-mode). And/or run pastel colorcheck.