sharkdp / pastel

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

how to force colour output with a pager ? #219

Open simonmichael opened 1 month ago

simonmichael commented 1 month ago

I love pastel, thanks!

Output is often long and I'd like to view it in a pager. I think pastel disables colour output when stdout is non-interactive. How can I force it not to ? I tried eg TERM=xterm-256color COLOR=always pastel -f list | less -R

sharkdp commented 1 week ago

Oh, that is a bug.

-f should indeed force colors to be visible, even if the output is non-interactive. I'm pretty sure this worked before...

sharkdp commented 1 week ago

Or maybe it only worked for pastel paint (where -f still works)